#04311F#04311F

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

Color values

HEX#04311F
RGBrgb(4, 49, 31)
HSLhsl(156, 85%, 10%)
HSVhsv(156, 92%, 19%)
CMYKcmyk(91.8%, 0%, 36.7%, 80.8%)
CIE-LABlab(17.09, -20.19, 7.36)
CIE-LCHlch(17.09, 21.49, 159.99°)
OKLaboklab(27.83% -0.055 0.0187)
OKLCHoklch(27.83% 0.058 161.2)
XYZxyz(1.3956, 2.3212, 1.6705)
Luminance0.0232 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04311F #310416
analogous
#043108 #04311F #042C31
triadic
#04311F #1F0431 #311F04
tetradic
#04311F #080431 #310416 #2C3104
square
#04311F #080431 #310416 #2C3104
split-complementary
#04311F #31042C #310804
monochromatic
#021C12 #021C12 #04311F #096A43 #0DA267

Accessibility & contrast

On white

14.34
#04311F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04311F
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04311F#FFFFFF#000000##FFFFFF
##04311F1.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #04311f;
/* rgb */ color: rgb(4, 49, 31);
/* oklch */ color: oklch(27.8% 0.058 161.2);
Tailwind
colors: {
  custom: {
    50: '#4c695a',
    500: '#04311f',
    950: '#000000',
  },
}
SCSS
$custom: #04311f;
$custom-light: #4c695a;
$custom-dark: #000000;
JSON
{
  "hex": "#04311f",
  "rgb": {
    "r": 4,
    "g": 49,
    "b": 31
  },
  "hsl": {
    "h": 156,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.27826,
    "c": 0.05805,
    "h": 161.2
  },
  "luminance": 0.02321
}

Semantic roles & 50–950 ramp

primary
#04311F
secondary
#731D40
accent
#2D7FFB
background
#F4F6F5
surface
#E7EBE9
border
#C3C6C5
text
#010603
muted
#777A78

Preview Lab

Preview with #04311F

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

Preview Lab → · Contrast checker → · Palette generator →

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