#1F2D08#1F2D08

#1F2D08 is a dark, moderate yellow-green. Relative luminance 0.022; OKLCH L 27.5% C 0.061 H 127.8°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#1F2D08
RGBrgb(31, 45, 8)
HSLhsl(83, 70%, 10%)
HSVhsv(83, 82%, 18%)
CMYKcmyk(31.1%, 0%, 82.2%, 82.4%)
CIE-LABlab(16.43, -13.07, 20.18)
CIE-LCHlch(16.43, 24.04, 122.94°)
OKLaboklab(27.51% -0.0373 0.0481)
OKLCHoklch(27.51% 0.061 127.8)
XYZxyz(1.5473, 2.1856, 0.5700)
Luminance0.0219 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D08 #16082D
analogous
#2D2808 #1F2D08 #0C2D08
triadic
#1F2D08 #081F2D #2D081F
tetradic
#1F2D08 #082D28 #16082D #2D080C
square
#1F2D08 #082D28 #16082D #2D080C
split-complementary
#1F2D08 #080C2D #28082D
monochromatic
#121A05 #121A05 #1F2D08 #436111 #67951A

Accessibility & contrast

On white

14.61
#1F2D08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1F2D08 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D08
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D08#FFFFFF#000000##FFFFFF
##1F2D081.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302904
Deuteranopia (green-blind)
#2E280B
Tritanopia (blue-blind)
#202B26
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f2d08;
/* rgb */ color: rgb(31, 45, 8);
/* oklch */ color: oklch(27.5% 0.061 127.8);
Tailwind
colors: {
  custom: {
    50: '#5c664a',
    500: '#1f2d08',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d08;
$custom-light: #5c664a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d08",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 8
  },
  "hsl": {
    "h": 82.703,
    "s": 69.811,
    "l": 10.392
  },
  "oklch": {
    "l": 0.27514,
    "c": 0.06083,
    "h": 127.8
  },
  "luminance": 0.02186
}

Semantic roles & 50–950 ramp

primary
#1F2D08
secondary
#40256C
accent
#3BED7E
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040501
muted
#797A77

Preview Lab

Preview with #1F2D08

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

Preview Lab → · Contrast checker → · Palette generator →

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