#1F3402#1F3402

#1F3402 is a dark, moderate yellow-green. Relative luminance 0.028; OKLCH L 29.6% C 0.078 H 130.4°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#1F3402
RGBrgb(31, 52, 2)
HSLhsl(85, 93%, 11%)
HSVhsv(85, 96%, 20%)
CMYKcmyk(40.4%, 0%, 96.2%, 79.6%)
CIE-LABlab(19.02, -17.58, 25.73)
CIE-LCHlch(19.02, 31.16, 124.33°)
OKLaboklab(29.6% -0.0503 0.0591)
OKLCHoklch(29.6% 0.078 130.4)
XYZxyz(1.8040, 2.7516, 0.4935)
Luminance0.0275 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3402 #170234
analogous
#343002 #1F3402 #063402
triadic
#1F3402 #021F34 #34021F
tetradic
#1F3402 #023430 #170234 #340206
square
#1F3402 #023430 #170234 #340206
split-complementary
#1F3402 #020634 #300234
monochromatic
#121D01 #121D01 #1F3402 #426F04 #65AA07

Accessibility & contrast

On white

13.54
#1F3402 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1F3402 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3402
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3402#FFFFFF#000000##FFFFFF
##1F34021.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#372F00
Deuteranopia (green-blind)
#342E06
Tritanopia (blue-blind)
#20312B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f3402;
/* rgb */ color: rgb(31, 52, 2);
/* oklch */ color: oklch(29.6% 0.078 130.4);
Tailwind
colors: {
  custom: {
    50: '#5d6b48',
    500: '#1f3402',
    950: '#000000',
  },
}
SCSS
$custom: #1f3402;
$custom-light: #5d6b48;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3402",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 2
  },
  "hsl": {
    "h": 85.2,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.29602,
    "c": 0.07761,
    "h": 130.4
  },
  "luminance": 0.02752
}

Semantic roles & 50–950 ramp

primary
#1F3402
secondary
#411A78
accent
#29FF83
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#040600
muted
#797A77

Preview Lab

Preview with #1F3402

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

Preview Lab → · Contrast checker → · Palette generator →

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