#1F2D04#1F2D04

#1F2D04 is a dark, moderate yellow-green. Relative luminance 0.022; OKLCH L 27.5% C 0.065 H 126.8°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#1F2D04
RGBrgb(31, 45, 4)
HSLhsl(80, 84%, 10%)
HSVhsv(80, 91%, 18%)
CMYKcmyk(31.1%, 0%, 91.1%, 82.4%)
CIE-LABlab(16.39, -13.49, 21.75)
CIE-LCHlch(16.39, 25.60, 121.80°)
OKLaboklab(27.47% -0.039 0.0521)
OKLCHoklch(27.47% 0.065 126.8)
XYZxyz(1.5254, 2.1768, 0.4546)
Luminance0.0218 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D04 #12042D
analogous
#2D2704 #1F2D04 #0B2D04
triadic
#1F2D04 #041F2D #2D041F
tetradic
#1F2D04 #042D27 #12042D #2D040B
square
#1F2D04 #042D27 #12042D #2D040B
split-complementary
#1F2D04 #040B2D #27042D
monochromatic
#131C02 #131C02 #1F2D04 #466509 #6C9D0E

Accessibility & contrast

On white

14.63
#1F2D04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2D04
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D04#FFFFFF#000000##FFFFFF
##1F2D041.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302900
Deuteranopia (green-blind)
#2E2807
Tritanopia (blue-blind)
#212A25
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f2d04;
/* rgb */ color: rgb(31, 45, 4);
/* oklch */ color: oklch(27.5% 0.065 126.8);
Tailwind
colors: {
  custom: {
    50: '#5c6649',
    500: '#1f2d04',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d04;
$custom-light: #5c6649;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d04",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 4
  },
  "hsl": {
    "h": 80.488,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.27465,
    "c": 0.06509,
    "h": 126.8
  },
  "luminance": 0.02177
}

Semantic roles & 50–950 ramp

primary
#1F2D04
secondary
#391D70
accent
#2EFA74
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#040500
muted
#797A77

Preview Lab

Preview with #1F2D04

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

Preview Lab → · Contrast checker → · Palette generator →

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