#1F450F#1F450F

#1F450F is a dark, moderate green. Relative luminance 0.046; OKLCH L 35.0% C 0.092 H 138.0°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#1F450F
RGBrgb(31, 69, 15)
HSLhsl(102, 64%, 16%)
HSVhsv(102, 78%, 27%)
CMYKcmyk(55.1%, 0%, 78.3%, 72.9%)
CIE-LABlab(25.51, -24.88, 27.18)
CIE-LCHlch(25.51, 36.85, 132.46°)
OKLaboklab(34.95% -0.0687 0.0618)
OKLCHoklch(34.95% 0.092 138)
XYZxyz(2.7793, 4.5818, 1.1898)
Luminance0.0458 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F450F #350F45
analogous
#3A450F #1F450F #0F451A
triadic
#1F450F #0F1F45 #450F1F
tetradic
#1F450F #0F3A45 #350F45 #451A0F
square
#1F450F #0F3A45 #350F45 #451A0F
split-complementary
#1F450F #1A0F45 #450F3A
monochromatic
#0B1905 #0B1905 #1F450F #36771A #4CAA25

Accessibility & contrast

On white

10.96
#1F450F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#1F450F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F450F
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F450F#FFFFFF#000000##FFFFFF
##1F450F1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#473E07
Deuteranopia (green-blind)
#423B14
Tritanopia (blue-blind)
#1C423A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f450f;
/* rgb */ color: rgb(31, 69, 15);
/* oklch */ color: oklch(35.0% 0.092 138.0);
Tailwind
colors: {
  custom: {
    50: '#5f7951',
    500: '#1f450f',
    950: '#000000',
  },
}
SCSS
$custom: #1f450f;
$custom-light: #5f7951;
$custom-dark: #000000;
JSON
{
  "hex": "#1f450f",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 15
  },
  "hsl": {
    "h": 102.222,
    "s": 64.286,
    "l": 16.471
  },
  "oklch": {
    "l": 0.34953,
    "c": 0.09243,
    "h": 138
  },
  "luminance": 0.04582
}

Semantic roles & 50–950 ramp

primary
#1F450F
secondary
#68307F
accent
#41E7B6
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#050902
muted
#797B78

Preview Lab

Preview with #1F450F

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

Preview Lab → · Contrast checker → · Palette generator →

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