#1F450C#1F450C

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

Color values

HEX#1F450C
RGBrgb(31, 69, 12)
HSLhsl(100, 70%, 16%)
HSVhsv(100, 83%, 27%)
CMYKcmyk(55.1%, 0%, 82.6%, 72.9%)
CIE-LABlab(25.48, -25.14, 28.48)
CIE-LCHlch(25.48, 37.99, 131.43°)
OKLaboklab(34.93% -0.0697 0.0641)
OKLCHoklch(34.93% 0.095 137.4)
XYZxyz(2.7595, 4.5739, 1.0852)
Luminance0.0457 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F450C #320C45
analogous
#3B450C #1F450C #0C4515
triadic
#1F450C #0C1F45 #450C1F
tetradic
#1F450C #0C3B45 #320C45 #45150C
square
#1F450C #0C3B45 #320C45 #45150C
split-complementary
#1F450C #150C45 #450C3B
monochromatic
#0C1A05 #0C1A05 #1F450C #367915 #4EAD1E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F450C#FFFFFF#000000##FFFFFF
##1F450C1.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)
#483E03
Deuteranopia (green-blind)
#433B12
Tritanopia (blue-blind)
#1D423A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f450c;
/* rgb */ color: rgb(31, 69, 12);
/* oklch */ color: oklch(34.9% 0.095 137.4);
Tailwind
colors: {
  custom: {
    50: '#5f794f',
    500: '#1f450c',
    950: '#000000',
  },
}
SCSS
$custom: #1f450c;
$custom-light: #5f794f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f450c",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 12
  },
  "hsl": {
    "h": 100,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.34926,
    "c": 0.09464,
    "h": 137.4
  },
  "luminance": 0.04574
}

Semantic roles & 50–950 ramp

primary
#1F450C
secondary
#652C81
accent
#3BEDB2
background
#F5F7F4
surface
#EAEDE7
border
#C6C8C3
text
#050902
muted
#797B78

Preview Lab

Preview with #1F450C

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

Preview Lab → · Contrast checker → · Palette generator →

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