#1F3003#1F3003

#1F3003 is a dark, moderate yellow-green. Relative luminance 0.024; OKLCH L 28.4% C 0.071 H 128.5°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#1F3003
RGBrgb(31, 48, 3)
HSLhsl(83, 88%, 10%)
HSVhsv(83, 94%, 19%)
CMYKcmyk(35.4%, 0%, 93.8%, 81.2%)
CIE-LABlab(17.51, -15.30, 23.54)
CIE-LCHlch(17.51, 28.07, 123.01°)
OKLaboklab(28.38% -0.044 0.0553)
OKLCHoklch(28.38% 0.071 128.5)
XYZxyz(1.6385, 2.4117, 0.4653)
Luminance0.0241 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3003 #140330
analogous
#302B03 #1F3003 #083003
triadic
#1F3003 #031F30 #30031F
tetradic
#1F3003 #03302B #140330 #300308
square
#1F3003 #03302B #140330 #300308
split-complementary
#1F3003 #030830 #2B0330
monochromatic
#131D02 #131D02 #1F3003 #446A07 #69A30A

Accessibility & contrast

On white

14.17
#1F3003 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1F3003 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3003
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3003#FFFFFF#000000##FFFFFF
##1F30031.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332C00
Deuteranopia (green-blind)
#312B07
Tritanopia (blue-blind)
#202D28
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f3003;
/* rgb */ color: rgb(31, 48, 3);
/* oklch */ color: oklch(28.4% 0.071 128.5);
Tailwind
colors: {
  custom: {
    50: '#5c6848',
    500: '#1f3003',
    950: '#000000',
  },
}
SCSS
$custom: #1f3003;
$custom-light: #5c6848;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3003",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 3
  },
  "hsl": {
    "h": 82.667,
    "s": 88.235,
    "l": 10
  },
  "oklch": {
    "l": 0.28377,
    "c": 0.07071,
    "h": 128.5
  },
  "luminance": 0.02412
}

Semantic roles & 50–950 ramp

primary
#1F3003
secondary
#3D1B73
accent
#29FE7A
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#040600
muted
#797A77

Preview Lab

Preview with #1F3003

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

Preview Lab → · Contrast checker → · Palette generator →

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