#1F2F08#1F2F08

#1F2F08 is a dark, moderate yellow-green. Relative luminance 0.023; OKLCH L 28.1% C 0.064 H 129.1°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#1F2F08
RGBrgb(31, 47, 8)
HSLhsl(85, 71%, 11%)
HSVhsv(85, 83%, 18%)
CMYKcmyk(34%, 0%, 83%, 81.6%)
CIE-LABlab(17.19, -14.23, 21.11)
CIE-LCHlch(17.19, 25.46, 123.99°)
OKLaboklab(28.13% -0.0404 0.0497)
OKLCHoklch(28.13% 0.064 129.1)
XYZxyz(1.6254, 2.3418, 0.5961)
Luminance0.0234 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F08 #18082F
analogous
#2F2B08 #1F2F08 #0B2F08
triadic
#1F2F08 #081F2F #2F081F
tetradic
#1F2F08 #082F2B #18082F #2F080B
square
#1F2F08 #082F2B #18082F #2F080B
split-complementary
#1F2F08 #080B2F #2B082F
monochromatic
#111A04 #111A04 #1F2F08 #416311 #64981A

Accessibility & contrast

On white

14.30
#1F2F08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1F2F08 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F08
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F08#FFFFFF#000000##FFFFFF
##1F2F081.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322B04
Deuteranopia (green-blind)
#2F2A0B
Tritanopia (blue-blind)
#202D27
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f2f08;
/* rgb */ color: rgb(31, 47, 8);
/* oklch */ color: oklch(28.1% 0.064 129.1);
Tailwind
colors: {
  custom: {
    50: '#5c674b',
    500: '#1f2f08',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f08;
$custom-light: #5c674b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f08",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 8
  },
  "hsl": {
    "h": 84.615,
    "s": 70.909,
    "l": 10.784
  },
  "oklch": {
    "l": 0.28127,
    "c": 0.06409,
    "h": 129.1
  },
  "luminance": 0.02342
}

Semantic roles & 50–950 ramp

primary
#1F2F08
secondary
#43256E
accent
#3AEE84
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #1F2F08

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#1F2F08 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva