#1F3A04#1F3A04

#1F3A04 is a dark, moderate yellow-green. Relative luminance 0.033; OKLCH L 31.5% C 0.085 H 133.2°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#1F3A04
RGBrgb(31, 58, 4)
HSLhsl(90, 87%, 12%)
HSVhsv(90, 93%, 23%)
CMYKcmyk(46.6%, 0%, 93.1%, 77.3%)
CIE-LABlab(21.31, -20.50, 27.49)
CIE-LCHlch(21.31, 34.29, 126.71°)
OKLaboklab(31.48% -0.0579 0.0616)
OKLCHoklch(31.48% 0.085 133.2)
XYZxyz(2.1000, 3.3261, 0.6462)
Luminance0.0333 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3A04 #1F043A
analogous
#3A3A04 #1F3A04 #043A04
triadic
#1F3A04 #041F3A #3A041F
tetradic
#1F3A04 #043A3A #1F043A #3A0404
square
#1F3A04 #043A3A #1F043A #3A0404
split-complementary
#1F3A04 #04043A #3A043A
monochromatic
#0F1D02 #0F1D02 #1F3A04 #3E7308 #5CAD0C

Accessibility & contrast

On white

12.61
#1F3A04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F3A04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3A04
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3A04#FFFFFF#000000##FFFFFF
##1F3A041.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3400
Deuteranopia (green-blind)
#393209
Tritanopia (blue-blind)
#1F3730
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f3a04;
/* rgb */ color: rgb(31, 58, 4);
/* oklch */ color: oklch(31.5% 0.085 133.2);
Tailwind
colors: {
  custom: {
    50: '#5e704a',
    500: '#1f3a04',
    950: '#000000',
  },
}
SCSS
$custom: #1f3a04;
$custom-light: #5e704a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3a04",
  "rgb": {
    "r": 31,
    "g": 58,
    "b": 4
  },
  "hsl": {
    "h": 90,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.31476,
    "c": 0.0845,
    "h": 133.2
  },
  "luminance": 0.03326
}

Semantic roles & 50–950 ramp

primary
#1F3A04
secondary
#4D1E7C
accent
#2BFD94
background
#F5F6F4
surface
#E9ECE7
border
#C5C7C3
text
#040701
muted
#797A77

Preview Lab

Preview with #1F3A04

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

Preview Lab → · Contrast checker → · Palette generator →

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