#04312B#04312B

#04312B is a dark, muted teal. Relative luminance 0.024; OKLCH L 28.2% C 0.048 H 181.6°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#04312B
RGBrgb(4, 49, 43)
HSLhsl(172, 85%, 10%)
HSVhsv(172, 92%, 19%)
CMYKcmyk(91.8%, 0%, 12.2%, 80.8%)
CIE-LABlab(17.44, -16.44, -0.40)
CIE-LCHlch(17.44, 16.44, 181.39°)
OKLaboklab(28.24% -0.0478 -0.0013)
OKLCHoklch(28.24% 0.048 181.6)
XYZxyz(1.5842, 2.3967, 2.6641)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04312B #31040A
analogous
#043114 #04312B #042031
triadic
#04312B #2B0431 #312B04
tetradic
#04312B #140431 #31040A #203104
square
#04312B #140431 #31040A #203104
split-complementary
#04312B #310420 #311404
monochromatic
#021C19 #021C19 #04312B #096A5D #0DA28E

Accessibility & contrast

On white

14.19
#04312B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#04312B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04312B
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04312B#FFFFFF#000000##FFFFFF
##04312B1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2D2B
Deuteranopia (green-blind)
#28292C
Tritanopia (blue-blind)
#00322F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #04312b;
/* rgb */ color: rgb(4, 49, 43);
/* oklch */ color: oklch(28.2% 0.048 181.6);
Tailwind
colors: {
  custom: {
    50: '#4d6964',
    500: '#04312b',
    950: '#000000',
  },
}
SCSS
$custom: #04312b;
$custom-light: #4d6964;
$custom-dark: #000000;
JSON
{
  "hex": "#04312b",
  "rgb": {
    "r": 4,
    "g": 49,
    "b": 43
  },
  "hsl": {
    "h": 172,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.28235,
    "c": 0.04781,
    "h": 181.6
  },
  "luminance": 0.02397
}

Semantic roles & 50–950 ramp

primary
#04312B
secondary
#731D29
accent
#2D48FB
background
#F4F6F5
surface
#E7EBEA
border
#C3C6C6
text
#020605
muted
#787A79

Preview Lab

Preview with #04312B

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

Preview Lab → · Contrast checker → · Palette generator →

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