#1F331C#1F331C

#1F331C is a dark, muted green. Relative luminance 0.027; OKLCH L 29.7% C 0.048 H 141.2°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#1F331C
RGBrgb(31, 51, 28)
HSLhsl(112, 29%, 15%)
HSVhsv(112, 45%, 20%)
CMYKcmyk(39.2%, 0%, 45.1%, 80%)
CIE-LABlab(18.98, -13.71, 12.11)
CIE-LCHlch(18.98, 18.29, 138.55°)
OKLaboklab(29.68% -0.0374 0.03)
OKLCHoklch(29.68% 0.048 141.2)
XYZxyz(1.9584, 2.7427, 1.5246)
Luminance0.0274 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F331C #301C33
analogous
#2A331C #1F331C #1C3324
triadic
#1F331C #1C1F33 #331C1F
tetradic
#1F331C #1C2A33 #301C33 #33241C
square
#1F331C #1C2A33 #301C33 #33241C
split-complementary
#1F331C #241C33 #331C2A
monochromatic
#0C140B #0C140B #1F331C #375B32 #4F8247

Accessibility & contrast

On white

13.56
#1F331C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F331C
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F331C#FFFFFF#000000##FFFFFF
##1F331C1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342F1A
Deuteranopia (green-blind)
#312D1D
Tritanopia (blue-blind)
#1D322D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f331c;
/* rgb */ color: rgb(31, 51, 28);
/* oklch */ color: oklch(29.7% 0.048 141.2);
Tailwind
colors: {
  custom: {
    50: '#5b6a58',
    500: '#1f331c',
    950: '#000000',
  },
}
SCSS
$custom: #1f331c;
$custom-light: #5b6a58;
$custom-dark: #000000;
JSON
{
  "hex": "#1f331c",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 28
  },
  "hsl": {
    "h": 112.174,
    "s": 29.114,
    "l": 15.49
  },
  "oklch": {
    "l": 0.2968,
    "c": 0.04798,
    "h": 141.2
  },
  "luminance": 0.02743
}

Semantic roles & 50–950 ramp

primary
#1F331C
secondary
#624467
accent
#62C5B8
background
#F5F6F5
surface
#E9EBE9
border
#C5C6C5
text
#040603
muted
#797A78

Preview Lab

Preview with #1F331C

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

Preview Lab → · Contrast checker → · Palette generator →

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