RAL Classic color

RAL 6005 Moss green #2F4538

RAL 6005 Moss green is shown here as #2F4538, a widely published sRGB approximation of the printed swatch. It is a dark grayish green in the green family. In OKLCH it sits at lightness 0.368, chroma 0.036 and hue 158.2°. The nearest CSS named color is darkslategray (#2F4F4F), ΔE2000 7.7 away.

Relative luminance
0.0515
OKLCH L · C · h
0.368 · 0.036 · 158.2
Best text
White 10.34:1
Hue family
Green

#2F4538 color codes

HEX
#2F4538
RGB
rgb(47, 69, 56)
HSL
hsl(145, 19%, 23%)
OKLCH
oklch(0.368 0.036 158.2)
OKLab
oklab(0.368 -0.033 0.013)
CIELAB (D65)
L* 27.15, a* -11.86, b* 5.13
XYZ (D65)
X 4.01, Y 5.15, Z 4.52
CMYK (naive)
cmyk(32%, 0%, 19%, 73%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

RAL and RAL Classic are trademarks of RAL gGmbH, which this site is not affiliated with. The sRGB value is an approximation of the printed swatch; check a physical RAL color card before you specify a paint.

Legibility

Contrast: is #2F4538 accessible?

White text on it reaches 10.34:1, passing AAA. Black text fails at 2.02:1.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    2.02:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc +9
  • White text on it

    10.34:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −98
  • As text on black

    2.02:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc −8
  • As text on white

    10.34:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +93

Nearest versions that pass 4.5:1

  • For text on white

    #2F4538 10.34:1

    It already reaches 10.34:1 on white, so no change is needed.

  • For text on black

    #637A6C 4.53:1

    Lightening its OKLCH lightness from 0.37 to 0.56 reaches 4.53:1 on black, keeping the hue.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #2F4538 live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #2F4538

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #2F4538 sits at step 800.

  1. 50#E6FBEE
    White
    1.08
    Black
    19.39
  2. 100#DCF2E4
    White
    1.17
    Black
    17.86
  3. 200#C7DED0
    White
    1.42
    Black
    14.78
  4. 300#ADC5B6
    White
    1.83
    Black
    11.43
  5. 400#90A999
    White
    2.52
    Black
    8.32
  6. 500#758D7E
    White
    3.57
    Black
    5.86
  7. 600#5E7567
    White
    4.98
    Black
    4.21
  8. 700#485E51
    White
    7.01
    Black
    2.99
  9. 800This color#2F4538
    White
    10.34
    Black
    2.02
  10. 900#1C2D23
    White
    14.49
    Black
    1.44
  11. 950#0B1A11
    White
    17.94
    Black
    1.17

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #2F4538 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.086; #2F4538 uses 41% of it. Display P3, which many recent phones and laptops show, reaches 0.119 there: 38% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.036
sRGB edge
0.086
Display P3 edge
0.119
Rec. 2020 edge
0.186
Dominant wavelength
524 nm
Excitation purity
9%
Chromaticity
x 0.2934, y 0.3761
  • This color#2F4538
  • Most vivid in sRGB#004C2D
  • Most vivid in Display P3oklch(0.368 0.119 158.2)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #2f4538;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0 0.3088 0.1619); }
}

Mixing

Mixing #2F4538

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#97A29C
  • OKLab50%#919D95
  • OKLCH50%#919D95

Black #000000

  • sRGB50%#18231C
  • OKLab50%#0C150F
  • OKLCH50%#0C150F

Its complement #4C3846

  • sRGB50%#3E3F3F
  • OKLab50%#3F3F3F
  • OKLCH50%#304151
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #2f4538, white);
color: color-mix(in oklch, #2f4538 50%, white);

In use

#2F4538 in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:110.34:1 Passes
  • Link and body-size textText, 4.5:110.34:1 Passes
  • Large headingLarge text, 3:110.34:1 Passes
  • Icons, borders and focus ringsNon-text, 3:110.34:1 Passes

Dark page

  • Button labelText, 4.5:110.34:1 Passes
  • Link and body-size textText, 4.5:11.81:1 Fails
  • Large headingLarge text, 3:11.81:1 Fails
  • Icons, borders and focus ringsNon-text, 3:11.81:1 Fails

For text on this page, the nearest shade that passes is #6A8273 4.50:1

Color vision

How #2F4538 looks with color blindness

Achromatopsia changes it most, ΔE2000 13.0; tritanopia changes it least, 4.6.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #454237 ΔE2000 11.9

    Distinct

    Reads as dark gray

  • Deuteranopia

    No working green (medium-wavelength) cones

    #413F39 ΔE2000 12.2

    Distinct

    Reads as dark gray

  • Tritanopia

    No working blue (short-wavelength) cones

    #2B4541 ΔE2000 4.6

    Close match

    Reads as dark grayish teal

  • Achromatopsia

    No cone color vision; lightness only

    #404040 ΔE2000 13.0

    Distinct

    Reads as dark gray

Pairing check

Checked against its complement, #4C3846. Their lightness contrast is only 1.03:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#2F4538 · #4C384626.6Stays distinct
Protanopia#454237 · #383C4713.3Stays distinct
Deuteranopia#413F39 · #3D3F457.6Harder to tell apart
Tritanopia#2B4541 · #4E383D27.7Stays distinct
Achromatopsia#404040 · #3E3E3E0.7Easily confused

Harmony

Color harmonies for #2F4538

Its complement is #4C3846, a dark grayish magenta.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#2F4538
  • Complement#4C3846

Complementary

Open in Harmony Studio
  • −30°#3A432F
  • Base#2F4538
  • +30°#284543
  • Base#2F4538
  • +120°#3B3D52
  • +240°#503931
  • Base#2F4538
  • +150°#443A4E
  • +210°#50373B

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-ral-6005: #2f4538;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'ral-6005': '#2f4538',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-ral-6005: oklch(0.368 0.036 158.2);
}

Design token (W3C DTCG)

{
  "color": {
    "ral-6005": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.1843, 0.2706, 0.2196],
        "hex": "#2f4538"
      },
      "$description": "RAL 6005 Moss green (approximate sRGB)"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let ral6005 = Color(.sRGB, red: 0.184, green: 0.271, blue: 0.220, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Ral6005 = Color(0xFF2F4538)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #2F4538 in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.