#04311D#04311D

#04311D is a dark, moderate teal. Relative luminance 0.023; OKLCH L 27.8% C 0.060 H 158.8°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#04311D
RGBrgb(4, 49, 29)
HSLhsl(153, 85%, 10%)
HSVhsv(153, 92%, 19%)
CMYKcmyk(91.8%, 0%, 40.8%, 80.8%)
CIE-LABlab(17.04, -20.74, 8.64)
CIE-LCHlch(17.04, 22.47, 157.37°)
OKLaboklab(27.77% -0.0562 0.0218)
OKLCHoklch(27.77% 0.06 158.8)
XYZxyz(1.3700, 2.3110, 1.5360)
Luminance0.0231 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04311D #310418
analogous
#043106 #04311D #042E31
triadic
#04311D #1D0431 #311D04
tetradic
#04311D #060431 #310418 #2E3104
square
#04311D #060431 #310418 #2E3104
split-complementary
#04311D #31042E #310604
monochromatic
#021C11 #021C11 #04311D #096A3E #0DA260

Accessibility & contrast

On white

14.36
#04311D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04311D
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04311D#FFFFFF#000000##FFFFFF
##04311D1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #04311d;
/* rgb */ color: rgb(4, 49, 29);
/* oklch */ color: oklch(27.8% 0.060 158.8);
Tailwind
colors: {
  custom: {
    50: '#4c6959',
    500: '#04311d',
    950: '#000000',
  },
}
SCSS
$custom: #04311d;
$custom-light: #4c6959;
$custom-dark: #000000;
JSON
{
  "hex": "#04311d",
  "rgb": {
    "r": 4,
    "g": 49,
    "b": 29
  },
  "hsl": {
    "h": 153.333,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.2777,
    "c": 0.06025,
    "h": 158.8
  },
  "luminance": 0.02311
}

Semantic roles & 50–950 ramp

primary
#04311D
secondary
#731D44
accent
#2D88FB
background
#F4F6F5
surface
#E7EBE9
border
#C3C6C5
text
#010603
muted
#777A78

Preview Lab

Preview with #04311D

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

Preview Lab → · Contrast checker → · Palette generator →

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