#04312C#04312C

#04312C is a dark, muted teal. Relative luminance 0.024; OKLCH L 28.3% C 0.047 H 183.7°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#04312C
RGBrgb(4, 49, 44)
HSLhsl(173, 85%, 10%)
HSVhsv(173, 92%, 19%)
CMYKcmyk(91.8%, 0%, 10.2%, 80.8%)
CIE-LABlab(17.48, -16.09, -1.04)
CIE-LCHlch(17.48, 16.12, 183.70°)
OKLaboklab(28.27% -0.0472 -0.0031)
OKLCHoklch(28.27% 0.047 183.7)
XYZxyz(1.6028, 2.4041, 2.7619)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04312C #310409
analogous
#043115 #04312C #041F31
triadic
#04312C #2C0431 #312C04
tetradic
#04312C #150431 #310409 #1F3104
square
#04312C #150431 #310409 #1F3104
split-complementary
#04312C #31041F #311504
monochromatic
#021C19 #021C19 #04312C #096A5F #0DA292

Accessibility & contrast

On white

14.18
#04312C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04312C
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04312C#FFFFFF#000000##FFFFFF
##04312C1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #04312c;
/* rgb */ color: rgb(4, 49, 44);
/* oklch */ color: oklch(28.3% 0.047 183.7);
Tailwind
colors: {
  custom: {
    50: '#4d6965',
    500: '#04312c',
    950: '#000000',
  },
}
SCSS
$custom: #04312c;
$custom-light: #4d6965;
$custom-dark: #000000;
JSON
{
  "hex": "#04312c",
  "rgb": {
    "r": 4,
    "g": 49,
    "b": 44
  },
  "hsl": {
    "h": 173.333,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.28274,
    "c": 0.0473,
    "h": 183.7
  },
  "luminance": 0.02404
}

Semantic roles & 50–950 ramp

primary
#04312C
secondary
#731D27
accent
#2D44FB
background
#F4F6F6
surface
#E7EBEB
border
#C3C6C6
text
#020605
muted
#787A7A

Preview Lab

Preview with #04312C

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

Preview Lab → · Contrast checker → · Palette generator →

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