#04311C#04311C

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

Color values

HEX#04311C
RGBrgb(4, 49, 28)
HSLhsl(152, 85%, 10%)
HSVhsv(152, 92%, 19%)
CMYKcmyk(91.8%, 0%, 42.9%, 80.8%)
CIE-LABlab(17.02, -21.00, 9.28)
CIE-LCHlch(17.02, 22.96, 156.15°)
OKLaboklab(27.74% -0.0568 0.0233)
OKLCHoklch(27.74% 0.061 157.7)
XYZxyz(1.3578, 2.3061, 1.4719)
Luminance0.0231 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04311C #310419
analogous
#043105 #04311C #042F31
triadic
#04311C #1C0431 #311C04
tetradic
#04311C #050431 #310419 #2F3104
square
#04311C #050431 #310419 #2F3104
split-complementary
#04311C #31042F #310504
monochromatic
#021C10 #021C10 #04311C #096A3C #0DA25D

Accessibility & contrast

On white

14.37
#04311C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04311C
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04311C#FFFFFF#000000##FFFFFF
##04311C1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312C1B
Deuteranopia (green-blind)
#2B281D
Tritanopia (blue-blind)
#00312C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #04311c;
/* rgb */ color: rgb(4, 49, 28);
/* oklch */ color: oklch(27.7% 0.061 157.7);
Tailwind
colors: {
  custom: {
    50: '#4c6958',
    500: '#04311c',
    950: '#000000',
  },
}
SCSS
$custom: #04311c;
$custom-light: #4c6958;
$custom-dark: #000000;
JSON
{
  "hex": "#04311c",
  "rgb": {
    "r": 4,
    "g": 49,
    "b": 28
  },
  "hsl": {
    "h": 152,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.27744,
    "c": 0.06138,
    "h": 157.7
  },
  "luminance": 0.02306
}

Semantic roles & 50–950 ramp

primary
#04311C
secondary
#731D46
accent
#2D8DFB
background
#F4F6F5
surface
#E7EBE9
border
#C3C6C5
text
#010603
muted
#777A78

Preview Lab

Preview with #04311C

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

Preview Lab → · Contrast checker → · Palette generator →

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