#1F2800#1F2800

#1F2800 is a dark, moderate yellow-green. Relative luminance 0.018; OKLCH L 25.9% C 0.063 H 121.7°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#1F2800
RGBrgb(31, 40, 0)
HSLhsl(74, 100%, 8%)
HSVhsv(74, 100%, 16%)
CMYKcmyk(22.5%, 0%, 100%, 84.3%)
CIE-LABlab(14.45, -10.95, 20.92)
CIE-LCHlch(14.45, 23.61, 117.63°)
OKLaboklab(25.88% -0.0328 0.0532)
OKLCHoklch(25.88% 0.063 121.7)
XYZxyz(1.3239, 1.8089, 0.2794)
Luminance0.0181 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2800 #090028
analogous
#281D00 #1F2800 #0B2800
triadic
#1F2800 #001F28 #28001F
tetradic
#1F2800 #00281D #090028 #28000B
square
#1F2800 #00281D #090028 #28000B
split-complementary
#1F2800 #000B28 #1D0028
monochromatic
#181F00 #181F00 #1F2800 #4E6500 #7EA200

Accessibility & contrast

On white

15.42
#1F2800 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#1F2800 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2800
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2800#FFFFFF#000000##FFFFFF
##1F28001.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B2500
Deuteranopia (green-blind)
#2A2502
Tritanopia (blue-blind)
#212520
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1f2800;
/* rgb */ color: rgb(31, 40, 0);
/* oklch */ color: oklch(25.9% 0.063 121.7);
Tailwind
colors: {
  custom: {
    50: '#5b6146',
    500: '#1f2800',
    950: '#000000',
  },
}
SCSS
$custom: #1f2800;
$custom-light: #5b6146;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2800",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 0
  },
  "hsl": {
    "h": 73.5,
    "s": 100,
    "l": 7.843
  },
  "oklch": {
    "l": 0.2588,
    "c": 0.06255,
    "h": 121.7
  },
  "luminance": 0.01809
}

Semantic roles & 50–950 ramp

primary
#1F2800
secondary
#291470
accent
#29FF59
background
#F5F5F3
surface
#E9EAE5
border
#C5C6C1
text
#040500
muted
#797977

Preview Lab

Preview with #1F2800

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

Preview Lab → · Contrast checker → · Palette generator →

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