#1F331F#1F331F

#1F331F is a dark, muted green. Relative luminance 0.028; OKLCH L 29.8% C 0.044 H 144.4°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#1F331F
RGBrgb(31, 51, 31)
HSLhsl(120, 24%, 16%)
HSVhsv(120, 39%, 20%)
CMYKcmyk(39.2%, 0%, 39.2%, 80%)
CIE-LABlab(19.05, -13.11, 10.21)
CIE-LCHlch(19.05, 16.62, 142.09°)
OKLaboklab(29.75% -0.0358 0.0256)
OKLCHoklch(29.75% 0.044 144.4)
XYZxyz(1.9961, 2.7578, 1.7232)
Luminance0.0276 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F331F #331F33
analogous
#29331F #1F331F #1F3329
triadic
#1F331F #1F1F33 #331F1F
tetradic
#1F331F #1F2933 #331F33 #33291F
square
#1F331F #1F2933 #331F33 #33291F
split-complementary
#1F331F #291F33 #331F29
monochromatic
#0C130C #0C130C #1F331F #365936 #4D7F4D

Accessibility & contrast

On white

13.53
#1F331F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1F331F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F331F
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F331F#FFFFFF#000000##FFFFFF
##1F331F1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342F1E
Deuteranopia (green-blind)
#312D20
Tritanopia (blue-blind)
#1D322E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f331f;
/* rgb */ color: rgb(31, 51, 31);
/* oklch */ color: oklch(29.8% 0.044 144.4);
Tailwind
colors: {
  custom: {
    50: '#5b6a5a',
    500: '#1f331f',
    950: '#000000',
  },
}
SCSS
$custom: #1f331f;
$custom-light: #5b6a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f331f",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 31
  },
  "hsl": {
    "h": 120,
    "s": 24.39,
    "l": 16.078
  },
  "oklch": {
    "l": 0.29753,
    "c": 0.044,
    "h": 144.4
  },
  "luminance": 0.02758
}

Semantic roles & 50–950 ramp

primary
#1F331F
secondary
#664866
accent
#67C1C1
background
#F5F6F5
surface
#E9EBE9
border
#C5C6C5
text
#040604
muted
#797A79

Preview Lab

Preview with #1F331F

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

Preview Lab → · Contrast checker → · Palette generator →

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