#1F3304#1F3304

#1F3304 is a dark, moderate yellow-green. Relative luminance 0.027; OKLCH L 29.3% C 0.074 H 130.4°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#1F3304
RGBrgb(31, 51, 4)
HSLhsl(86, 85%, 11%)
HSVhsv(86, 92%, 20%)
CMYKcmyk(39.2%, 0%, 92.2%, 80%)
CIE-LABlab(18.66, -16.85, 24.50)
CIE-LCHlch(18.66, 29.73, 124.52°)
OKLaboklab(29.31% -0.0481 0.0566)
OKLCHoklch(29.31% 0.074 130.4)
XYZxyz(1.7708, 2.6677, 0.5365)
Luminance0.0267 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3304 #180433
analogous
#332F04 #1F3304 #073304
triadic
#1F3304 #041F33 #33041F
tetradic
#1F3304 #04332F #180433 #330407
square
#1F3304 #04332F #180433 #330407
split-complementary
#1F3304 #040733 #2F0433
monochromatic
#111C02 #111C02 #1F3304 #416C08 #64A40D

Accessibility & contrast

On white

13.69
#1F3304 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1F3304 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3304
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3304#FFFFFF#000000##FFFFFF
##1F33041.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#362E00
Deuteranopia (green-blind)
#332D08
Tritanopia (blue-blind)
#20302A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f3304;
/* rgb */ color: rgb(31, 51, 4);
/* oklch */ color: oklch(29.3% 0.074 130.4);
Tailwind
colors: {
  custom: {
    50: '#5d6b49',
    500: '#1f3304',
    950: '#000000',
  },
}
SCSS
$custom: #1f3304;
$custom-light: #5d6b49;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3304",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 4
  },
  "hsl": {
    "h": 85.532,
    "s": 85.455,
    "l": 10.784
  },
  "oklch": {
    "l": 0.29314,
    "c": 0.07421,
    "h": 130.4
  },
  "luminance": 0.02668
}

Semantic roles & 50–950 ramp

primary
#1F3304
secondary
#431D75
accent
#2CFC84
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #1F3304

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

Preview Lab → · Contrast checker → · Palette generator →

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