#1F2A09#1F2A09

#1F2A09 is a dark, muted yellow-green. Relative luminance 0.020; OKLCH L 26.6% C 0.055 H 125.6°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#1F2A09
RGBrgb(31, 42, 9)
HSLhsl(80, 65%, 10%)
HSVhsv(80, 79%, 16%)
CMYKcmyk(26.2%, 0%, 78.6%, 83.5%)
CIE-LABlab(15.31, -11.18, 18.36)
CIE-LCHlch(15.31, 21.50, 121.33°)
OKLaboklab(26.61% -0.0319 0.0445)
OKLCHoklch(26.61% 0.055 125.6)
XYZxyz(1.4424, 1.9669, 0.5621)
Luminance0.0197 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A09 #14092A
analogous
#2A2509 #1F2A09 #0E2A09
triadic
#1F2A09 #091F2A #2A091F
tetradic
#1F2A09 #092A25 #14092A #2A090E
square
#1F2A09 #092A25 #14092A #2A090E
split-complementary
#1F2A09 #090E2A #25092A
monochromatic
#131905 #131905 #1F2A09 #445C14 #698F1F

Accessibility & contrast

On white

15.07
#1F2A09 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1F2A09 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A09
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A09#FFFFFF#000000##FFFFFF
##1F2A091.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2706
Deuteranopia (green-blind)
#2B260B
Tritanopia (blue-blind)
#212823
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f2a09;
/* rgb */ color: rgb(31, 42, 9);
/* oklch */ color: oklch(26.6% 0.055 125.6);
Tailwind
colors: {
  custom: {
    50: '#5b634b',
    500: '#1f2a09',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a09;
$custom-light: #5b634b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a09",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 9
  },
  "hsl": {
    "h": 80,
    "s": 64.706,
    "l": 10
  },
  "oklch": {
    "l": 0.26611,
    "c": 0.0548,
    "h": 125.6
  },
  "luminance": 0.01967
}

Semantic roles & 50–950 ramp

primary
#1F2A09
secondary
#3D2768
accent
#40E878
background
#F5F5F4
surface
#E9EAE7
border
#C5C6C3
text
#040501
muted
#797977

Preview Lab

Preview with #1F2A09

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

Preview Lab → · Contrast checker → · Palette generator →

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