#1F3A03#1F3A03

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

Color values

HEX#1F3A03
RGBrgb(31, 58, 3)
HSLhsl(89, 90%, 12%)
HSVhsv(89, 95%, 23%)
CMYKcmyk(46.6%, 0%, 94.8%, 77.3%)
CIE-LABlab(21.30, -20.58, 27.89)
CIE-LCHlch(21.30, 34.66, 126.43°)
OKLaboklab(31.47% -0.0582 0.0624)
OKLCHoklch(31.47% 0.085 133)
XYZxyz(2.0945, 3.3239, 0.6173)
Luminance0.0332 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3A03 #1E033A
analogous
#3A3A03 #1F3A03 #033A03
triadic
#1F3A03 #031F3A #3A031F
tetradic
#1F3A03 #033A3A #1E033A #3A0303
square
#1F3A03 #033A3A #1E033A #3A0303
split-complementary
#1F3A03 #03033A #3A033A
monochromatic
#101D02 #101D02 #1F3A03 #3E7406 #5DAE09

Accessibility & contrast

On white

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

On black

1.66
#1F3A03 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1F3A03#FFFFFF#000000##FFFFFF
##1F3A031.0012.611.6612.61
#FFFFFF12.611.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3a03;
/* rgb */ color: rgb(31, 58, 3);
/* oklch */ color: oklch(31.5% 0.085 133.0);
Tailwind
colors: {
  custom: {
    50: '#5e7049',
    500: '#1f3a03',
    950: '#000000',
  },
}
SCSS
$custom: #1f3a03;
$custom-light: #5e7049;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3a03",
  "rgb": {
    "r": 31,
    "g": 58,
    "b": 3
  },
  "hsl": {
    "h": 89.455,
    "s": 90.164,
    "l": 11.961
  },
  "oklch": {
    "l": 0.31466,
    "c": 0.08534,
    "h": 133
  },
  "luminance": 0.03324
}

Semantic roles & 50–950 ramp

primary
#1F3A03
secondary
#4C1C7D
accent
#29FF92
background
#F5F6F4
surface
#E9ECE7
border
#C5C7C3
text
#040701
muted
#797A77

Preview Lab

Preview with #1F3A03

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

Preview Lab → · Contrast checker → · Palette generator →

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