#1F2900#1F2900

#1F2900 is a dark, moderate yellow-green. Relative luminance 0.019; OKLCH L 26.2% C 0.064 H 122.6°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#1F2900
RGBrgb(31, 41, 0)
HSLhsl(75, 100%, 8%)
HSVhsv(75, 100%, 16%)
CMYKcmyk(24.4%, 0%, 100%, 83.9%)
CIE-LABlab(14.83, -11.56, 21.41)
CIE-LCHlch(14.83, 24.33, 118.36°)
OKLaboklab(26.19% -0.0345 0.0539)
OKLCHoklch(26.19% 0.064 122.6)
XYZxyz(1.3580, 1.8772, 0.2908)
Luminance0.0188 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2900 #0A0029
analogous
#291E00 #1F2900 #0A2900
triadic
#1F2900 #001F29 #29001F
tetradic
#1F2900 #00291E #0A0029 #29000A
square
#1F2900 #00291E #0A0029 #29000A
split-complementary
#1F2900 #000A29 #1E0029
monochromatic
#171F00 #171F00 #1F2900 #4D6600 #7CA300

Accessibility & contrast

On white

15.27
#1F2900 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2900
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2900#FFFFFF#000000##FFFFFF
##1F29001.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2600
Deuteranopia (green-blind)
#2B2503
Tritanopia (blue-blind)
#212621
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1f2900;
/* rgb */ color: rgb(31, 41, 0);
/* oklch */ color: oklch(26.2% 0.064 122.6);
Tailwind
colors: {
  custom: {
    50: '#5b6246',
    500: '#1f2900',
    950: '#000000',
  },
}
SCSS
$custom: #1f2900;
$custom-light: #5b6246;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2900",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 0
  },
  "hsl": {
    "h": 74.634,
    "s": 100,
    "l": 8.039
  },
  "oklch": {
    "l": 0.26186,
    "c": 0.06396,
    "h": 122.6
  },
  "luminance": 0.01877
}

Semantic roles & 50–950 ramp

primary
#1F2900
secondary
#2B1471
accent
#29FF5D
background
#F5F5F3
surface
#E9EAE5
border
#C5C6C1
text
#040500
muted
#797977

Preview Lab

Preview with #1F2900

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

Preview Lab → · Contrast checker → · Palette generator →

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