#1F3A05#1F3A05

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

Color values

HEX#1F3A05
RGBrgb(31, 58, 5)
HSLhsl(91, 84%, 12%)
HSVhsv(91, 91%, 23%)
CMYKcmyk(46.6%, 0%, 91.4%, 77.3%)
CIE-LABlab(21.31, -20.41, 27.09)
CIE-LCHlch(21.31, 33.92, 126.99°)
OKLaboklab(31.49% -0.0575 0.0608)
OKLCHoklch(31.49% 0.084 133.4)
XYZxyz(2.1055, 3.3283, 0.6750)
Luminance0.0333 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3A05 #20053A
analogous
#3A3A05 #1F3A05 #053A05
triadic
#1F3A05 #051F3A #3A051F
tetradic
#1F3A05 #053A3A #20053A #3A0505
square
#1F3A05 #053A3A #20053A #3A0505
split-complementary
#1F3A05 #05053A #3A053A
monochromatic
#0F1C02 #0F1C02 #1F3A05 #3D720A #5BAB0F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F3A05#FFFFFF#000000##FFFFFF
##1F3A051.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)
#3D3500
Deuteranopia (green-blind)
#39320A
Tritanopia (blue-blind)
#1F3730
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f3a05;
/* rgb */ color: rgb(31, 58, 5);
/* oklch */ color: oklch(31.5% 0.084 133.4);
Tailwind
colors: {
  custom: {
    50: '#5e704a',
    500: '#1f3a05',
    950: '#000000',
  },
}
SCSS
$custom: #1f3a05;
$custom-light: #5e704a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3a05",
  "rgb": {
    "r": 31,
    "g": 58,
    "b": 5
  },
  "hsl": {
    "h": 90.566,
    "s": 84.127,
    "l": 12.353
  },
  "oklch": {
    "l": 0.31485,
    "c": 0.08369,
    "h": 133.4
  },
  "luminance": 0.03328
}

Semantic roles & 50–950 ramp

primary
#1F3A05
secondary
#4E207B
accent
#2DFA96
background
#F5F6F4
surface
#E9ECE7
border
#C5C7C3
text
#040701
muted
#797A77

Preview Lab

Preview with #1F3A05

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

Preview Lab → · Contrast checker → · Palette generator →

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