#04231F#04231F

#04231F is a very dark, muted teal. Relative luminance 0.013; OKLCH L 23.2% C 0.037 H 183.0°. Best body text is #FFFFFF at 16.60:1 contrast (WCAG AA passes).

Color values

HEX#04231F
RGBrgb(4, 35, 31)
HSLhsl(172, 79%, 8%)
HSVhsv(172, 89%, 14%)
CMYKcmyk(88.6%, 0%, 11.4%, 86.3%)
CIE-LABlab(11.46, -12.65, -0.65)
CIE-LCHlch(11.46, 12.67, 182.94°)
OKLaboklab(23.21% -0.037 -0.002)
OKLCHoklch(23.21% 0.037 183)
XYZxyz(0.8983, 1.3267, 1.5048)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04231F #230408
analogous
#04230F #04231F #041723
triadic
#04231F #1F0423 #231F04
tetradic
#04231F #0F0423 #230408 #172304
square
#04231F #0F0423 #230408 #172304
split-complementary
#04231F #230417 #230F04
monochromatic
#031B18 #031B18 #04231F #0A5A50 #119180

Accessibility & contrast

On white

16.60
#04231F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#04231F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04231F
16.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04231F#FFFFFF#000000##FFFFFF
##04231F1.0016.601.2716.60
#FFFFFF16.601.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21201F
Deuteranopia (green-blind)
#1C1D1F
Tritanopia (blue-blind)
#002422
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #04231f;
/* rgb */ color: rgb(4, 35, 31);
/* oklch */ color: oklch(23.2% 0.037 183.0);
Tailwind
colors: {
  custom: {
    50: '#495e5a',
    500: '#04231f',
    950: '#000000',
  },
}
SCSS
$custom: #04231f;
$custom-light: #495e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#04231f",
  "rgb": {
    "r": 4,
    "g": 35,
    "b": 31
  },
  "hsl": {
    "h": 172.258,
    "s": 79.487,
    "l": 7.647
  },
  "oklch": {
    "l": 0.23212,
    "c": 0.0371,
    "h": 183
  },
  "luminance": 0.01327
}

Semantic roles & 50–950 ramp

primary
#04231F
secondary
#661D26
accent
#324BF6
background
#F4F5F5
surface
#E7E9E9
border
#C3C5C5
text
#010403
muted
#777978

Preview Lab

Preview with #04231F

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

Preview Lab → · Contrast checker → · Palette generator →

#04231F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva