#1F450B#1F450B

#1F450B is a dark, moderate yellow-green. Relative luminance 0.046; OKLCH L 34.9% C 0.095 H 137.2°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#1F450B
RGBrgb(31, 69, 11)
HSLhsl(99, 73%, 16%)
HSVhsv(99, 84%, 27%)
CMYKcmyk(55.1%, 0%, 84.1%, 72.9%)
CIE-LABlab(25.48, -25.22, 28.89)
CIE-LCHlch(25.48, 38.35, 131.12°)
OKLaboklab(34.92% -0.0699 0.0647)
OKLCHoklch(34.92% 0.095 137.2)
XYZxyz(2.7535, 4.5715, 1.0538)
Luminance0.0457 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F450B #310B45
analogous
#3C450B #1F450B #0B4514
triadic
#1F450B #0B1F45 #450B1F
tetradic
#1F450B #0B3C45 #310B45 #45140B
square
#1F450B #0B3C45 #310B45 #45140B
split-complementary
#1F450B #140B45 #450B3C
monochromatic
#0C1A04 #0C1A04 #1F450B #377A13 #4EAF1C

Accessibility & contrast

On white

10.97
#1F450B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#1F450B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F450B
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F450B#FFFFFF#000000##FFFFFF
##1F450B1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#483E02
Deuteranopia (green-blind)
#433B11
Tritanopia (blue-blind)
#1D423A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f450b;
/* rgb */ color: rgb(31, 69, 11);
/* oklch */ color: oklch(34.9% 0.095 137.2);
Tailwind
colors: {
  custom: {
    50: '#5f794f',
    500: '#1f450b',
    950: '#000000',
  },
}
SCSS
$custom: #1f450b;
$custom-light: #5f794f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f450b",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 11
  },
  "hsl": {
    "h": 99.31,
    "s": 72.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.34917,
    "c": 0.09531,
    "h": 137.2
  },
  "luminance": 0.04572
}

Semantic roles & 50–950 ramp

primary
#1F450B
secondary
#632A81
accent
#39EFB0
background
#F5F7F4
surface
#EAEDE7
border
#C6C8C3
text
#050902
muted
#797B78

Preview Lab

Preview with #1F450B

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

Preview Lab → · Contrast checker → · Palette generator →

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