#1F4103#1F4103

#1F4103 is a dark, moderate yellow-green. Relative luminance 0.041; OKLCH L 33.6% C 0.095 H 135.0°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#1F4103
RGBrgb(31, 65, 3)
HSLhsl(93, 91%, 13%)
HSVhsv(93, 95%, 25%)
CMYKcmyk(52.3%, 0%, 95.4%, 74.5%)
CIE-LABlab(23.93, -23.97, 30.63)
CIE-LCHlch(23.93, 38.89, 128.05°)
OKLaboklab(33.63% -0.0673 0.0672)
OKLCHoklch(33.63% 0.095 135)
XYZxyz(2.4718, 4.0783, 0.7431)
Luminance0.0408 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4103 #250341
analogous
#3E4103 #1F4103 #034106
triadic
#1F4103 #031F41 #41031F
tetradic
#1F4103 #033E41 #250341 #410603
square
#1F4103 #033E41 #250341 #410603
split-complementary
#1F4103 #060341 #41033E
monochromatic
#0E1D01 #0E1D01 #1F4103 #3B7B06 #57B608

Accessibility & contrast

On white

11.57
#1F4103 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1F4103 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4103
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4103#FFFFFF#000000##FFFFFF
##1F41031.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B00
Deuteranopia (green-blind)
#3F380A
Tritanopia (blue-blind)
#1E3E36
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f4103;
/* rgb */ color: rgb(31, 65, 3);
/* oklch */ color: oklch(33.6% 0.095 135.0);
Tailwind
colors: {
  custom: {
    50: '#5f764a',
    500: '#1f4103',
    950: '#000000',
  },
}
SCSS
$custom: #1f4103;
$custom-light: #5f764a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4103",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 3
  },
  "hsl": {
    "h": 92.903,
    "s": 91.176,
    "l": 13.333
  },
  "oklch": {
    "l": 0.33626,
    "c": 0.09509,
    "h": 135
  },
  "luminance": 0.04078
}

Semantic roles & 50–950 ramp

primary
#1F4103
secondary
#551D83
accent
#29FF9E
background
#F5F7F4
surface
#EAEDE7
border
#C6C8C3
text
#050801
muted
#797B77

Preview Lab

Preview with #1F4103

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

Preview Lab → · Contrast checker → · Palette generator →

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