#1F2908#1F2908

#1F2908 is a dark, muted yellow-green. Relative luminance 0.019; OKLCH L 26.3% C 0.054 H 124.4°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#1F2908
RGBrgb(31, 41, 8)
HSLhsl(78, 67%, 10%)
HSVhsv(78, 80%, 16%)
CMYKcmyk(24.4%, 0%, 80.5%, 83.9%)
CIE-LABlab(14.92, -10.68, 18.27)
CIE-LCHlch(14.92, 21.16, 120.29°)
OKLaboklab(26.29% -0.0307 0.0447)
OKLCHoklch(26.29% 0.054 124.4)
XYZxyz(1.4019, 1.8947, 0.5215)
Luminance0.0190 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2908 #120829
analogous
#292308 #1F2908 #0F2908
triadic
#1F2908 #081F29 #29081F
tetradic
#1F2908 #082923 #120829 #29080F
square
#1F2908 #082923 #120829 #29080F
split-complementary
#1F2908 #080F29 #230829
monochromatic
#131A05 #131A05 #1F2908 #465C12 #6C8F1C

Accessibility & contrast

On white

15.23
#1F2908 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1F2908 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2908
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2908#FFFFFF#000000##FFFFFF
##1F29081.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2605
Deuteranopia (green-blind)
#2A250A
Tritanopia (blue-blind)
#212722
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f2908;
/* rgb */ color: rgb(31, 41, 8);
/* oklch */ color: oklch(26.3% 0.054 124.4);
Tailwind
colors: {
  custom: {
    50: '#5b624a',
    500: '#1f2908',
    950: '#000000',
  },
}
SCSS
$custom: #1f2908;
$custom-light: #5b624a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2908",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 8
  },
  "hsl": {
    "h": 78.182,
    "s": 67.347,
    "l": 9.608
  },
  "oklch": {
    "l": 0.26294,
    "c": 0.05424,
    "h": 124.4
  },
  "luminance": 0.01895
}

Semantic roles & 50–950 ramp

primary
#1F2908
secondary
#392568
accent
#3EEA72
background
#F5F5F4
surface
#E9EAE7
border
#C5C6C3
text
#040501
muted
#797977

Preview Lab

Preview with #1F2908

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

Preview Lab → · Contrast checker → · Palette generator →

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