#04311B#04311B

#04311B is a dark, moderate teal. Relative luminance 0.023; OKLCH L 27.7% C 0.063 H 156.6°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#04311B
RGBrgb(4, 49, 27)
HSLhsl(151, 85%, 10%)
HSVhsv(151, 92%, 19%)
CMYKcmyk(91.8%, 0%, 44.9%, 80.8%)
CIE-LABlab(17.00, -21.25, 9.92)
CIE-LCHlch(17.00, 23.45, 154.97°)
OKLaboklab(27.72% -0.0574 0.0249)
OKLCHoklch(27.72% 0.063 156.6)
XYZxyz(1.3461, 2.3014, 1.4100)
Luminance0.0230 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04311B #31041A
analogous
#043105 #04311B #043031
triadic
#04311B #1B0431 #311B04
tetradic
#04311B #050431 #31041A #303104
square
#04311B #050431 #31041A #303104
split-complementary
#04311B #310430 #310504
monochromatic
#021C10 #021C10 #04311B #096A3A #0DA259

Accessibility & contrast

On white

14.38
#04311B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04311B
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04311B#FFFFFF#000000##FFFFFF
##04311B1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312C1A
Deuteranopia (green-blind)
#2B281C
Tritanopia (blue-blind)
#00302B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #04311b;
/* rgb */ color: rgb(4, 49, 27);
/* oklch */ color: oklch(27.7% 0.063 156.6);
Tailwind
colors: {
  custom: {
    50: '#4c6957',
    500: '#04311b',
    950: '#000000',
  },
}
SCSS
$custom: #04311b;
$custom-light: #4c6957;
$custom-dark: #000000;
JSON
{
  "hex": "#04311b",
  "rgb": {
    "r": 4,
    "g": 49,
    "b": 27
  },
  "hsl": {
    "h": 150.667,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.27718,
    "c": 0.06251,
    "h": 156.6
  },
  "luminance": 0.02302
}

Semantic roles & 50–950 ramp

primary
#04311B
secondary
#731D47
accent
#2D92FB
background
#F4F6F5
surface
#E7EBE9
border
#C3C6C5
text
#010603
muted
#777A78

Preview Lab

Preview with #04311B

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

Preview Lab → · Contrast checker → · Palette generator →

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