#04312A#04312A

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

Color values

HEX#04312A
RGBrgb(4, 49, 42)
HSLhsl(171, 85%, 10%)
HSVhsv(171, 92%, 19%)
CMYKcmyk(91.8%, 0%, 14.3%, 80.8%)
CIE-LABlab(17.41, -16.78, 0.24)
CIE-LCHlch(17.41, 16.78, 179.17°)
OKLaboklab(28.2% -0.0484 0.0004)
OKLCHoklch(28.2% 0.048 179.6)
XYZxyz(1.5661, 2.3894, 2.5687)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04312A #31040B
analogous
#043113 #04312A #042131
triadic
#04312A #2A0431 #312A04
tetradic
#04312A #130431 #31040B #213104
square
#04312A #130431 #31040B #213104
split-complementary
#04312A #310421 #311304
monochromatic
#021C18 #021C18 #04312A #096A5A #0DA28B

Accessibility & contrast

On white

14.21
#04312A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04312A
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04312A#FFFFFF#000000##FFFFFF
##04312A1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #04312a;
/* rgb */ color: rgb(4, 49, 42);
/* oklch */ color: oklch(28.2% 0.048 179.6);
Tailwind
colors: {
  custom: {
    50: '#4d6963',
    500: '#04312a',
    950: '#000000',
  },
}
SCSS
$custom: #04312a;
$custom-light: #4d6963;
$custom-dark: #000000;
JSON
{
  "hex": "#04312a",
  "rgb": {
    "r": 4,
    "g": 49,
    "b": 42
  },
  "hsl": {
    "h": 170.667,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.28196,
    "c": 0.04837,
    "h": 179.6
  },
  "luminance": 0.0239
}

Semantic roles & 50–950 ramp

primary
#04312A
secondary
#731D2B
accent
#2D4DFB
background
#F4F6F5
surface
#E7EBEA
border
#C3C6C6
text
#020605
muted
#787A79

Preview Lab

Preview with #04312A

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

Preview Lab → · Contrast checker → · Palette generator →

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