#1F2D0B#1F2D0B

#1F2D0B is a dark, muted yellow-green. Relative luminance 0.022; OKLCH L 27.6% C 0.058 H 128.6°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#1F2D0B
RGBrgb(31, 45, 11)
HSLhsl(85, 61%, 11%)
HSVhsv(85, 76%, 18%)
CMYKcmyk(31.1%, 0%, 75.6%, 82.4%)
CIE-LABlab(16.47, -12.76, 18.99)
CIE-LCHlch(16.47, 22.88, 123.91°)
OKLaboklab(27.55% -0.0361 0.0452)
OKLCHoklch(27.55% 0.058 128.6)
XYZxyz(1.5639, 2.1922, 0.6573)
Luminance0.0219 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D0B #190B2D
analogous
#2D2A0B #1F2D0B #0E2D0B
triadic
#1F2D0B #0B1F2D #2D0B1F
tetradic
#1F2D0B #0B2D2A #190B2D #2D0B0E
square
#1F2D0B #0B2D2A #190B2D #2D0B0E
split-complementary
#1F2D0B #0B0E2D #2A0B2D
monochromatic
#111906 #111906 #1F2D0B #415E17 #638F23

Accessibility & contrast

On white

14.60
#1F2D0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2D0B
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D0B#FFFFFF#000000##FFFFFF
##1F2D0B1.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2d0b;
/* rgb */ color: rgb(31, 45, 11);
/* oklch */ color: oklch(27.6% 0.058 128.6);
Tailwind
colors: {
  custom: {
    50: '#5c664c',
    500: '#1f2d0b',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d0b;
$custom-light: #5c664c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d0b",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 11
  },
  "hsl": {
    "h": 84.706,
    "s": 60.714,
    "l": 10.98
  },
  "oklch": {
    "l": 0.27552,
    "c": 0.05779,
    "h": 128.6
  },
  "luminance": 0.02192
}

Semantic roles & 50–950 ramp

primary
#1F2D0B
secondary
#442A69
accent
#44E486
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040501
muted
#797A77

Preview Lab

Preview with #1F2D0B

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

Preview Lab → · Contrast checker → · Palette generator →

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