#02311F#02311F

#02311F is a dark, muted teal. Relative luminance 0.023; OKLCH L 27.8% C 0.059 H 161.9°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#02311F
RGBrgb(2, 49, 31)
HSLhsl(157, 92%, 10%)
HSVhsv(157, 96%, 19%)
CMYKcmyk(95.9%, 0%, 36.7%, 80.8%)
CIE-LABlab(17.03, -20.67, 7.26)
CIE-LCHlch(17.03, 21.90, 160.64°)
OKLaboklab(27.76% -0.0562 0.0184)
OKLCHoklch(27.76% 0.059 161.9)
XYZxyz(1.3705, 2.3083, 1.6694)
Luminance0.0231 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02311F #310214
analogous
#023107 #02311F #022C31
triadic
#02311F #1F0231 #311F02
tetradic
#02311F #070231 #310214 #2C3102
square
#02311F #070231 #310214 #2C3102
split-complementary
#02311F #31022C #310702
monochromatic
#011D13 #011D13 #02311F #046C44 #07A769

Accessibility & contrast

On white

14.37
#02311F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#02311F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02311F
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02311F#FFFFFF#000000##FFFFFF
##02311F1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302C1E
Deuteranopia (green-blind)
#2A2820
Tritanopia (blue-blind)
#00312C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #02311f;
/* rgb */ color: rgb(2, 49, 31);
/* oklch */ color: oklch(27.8% 0.059 161.9);
Tailwind
colors: {
  custom: {
    50: '#4c695a',
    500: '#02311f',
    950: '#000000',
  },
}
SCSS
$custom: #02311f;
$custom-light: #4c695a;
$custom-dark: #000000;
JSON
{
  "hex": "#02311f",
  "rgb": {
    "r": 2,
    "g": 49,
    "b": 31
  },
  "hsl": {
    "h": 157.021,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.27758,
    "c": 0.05917,
    "h": 161.9
  },
  "luminance": 0.02308
}

Semantic roles & 50–950 ramp

primary
#02311F
secondary
#75193D
accent
#297BFF
background
#F4F6F5
surface
#E7EBE9
border
#C3C6C5
text
#010603
muted
#777A78

Preview Lab

Preview with #02311F

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

Preview Lab → · Contrast checker → · Palette generator →

#02311F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva