#042A31#042A31

#042A31 is a dark, muted teal. Relative luminance 0.019; OKLCH L 26.3% C 0.043 H 212.9°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#042A31
RGBrgb(4, 42, 49)
HSLhsl(189, 85%, 10%)
HSVhsv(189, 92%, 19%)
CMYKcmyk(91.8%, 14.3%, 0%, 80.8%)
CIE-LABlab(14.97, -10.00, -8.30)
CIE-LCHlch(14.97, 13.00, 219.70°)
OKLaboklab(26.31% -0.0358 -0.0232)
OKLCHoklch(26.31% 0.043 212.9)
XYZxyz(1.4322, 1.9033, 3.1970)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042A31 #310B04
analogous
#043121 #042A31 #041331
triadic
#042A31 #31042A #2A3104
tetradic
#042A31 #210431 #310B04 #133104
square
#042A31 #210431 #310B04 #133104
split-complementary
#042A31 #310413 #312104
monochromatic
#02181C #02181C #042A31 #095A6A #0D8BA2

Accessibility & contrast

On white

15.21
#042A31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#042A31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042A31
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042A31#FFFFFF#000000##FFFFFF
##042A311.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#252831
Deuteranopia (green-blind)
#1F2431
Tritanopia (blue-blind)
#002D2C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #042a31;
/* rgb */ color: rgb(4, 42, 49);
/* oklch */ color: oklch(26.3% 0.043 212.9);
Tailwind
colors: {
  custom: {
    50: '#4d6369',
    500: '#042a31',
    950: '#000000',
  },
}
SCSS
$custom: #042a31;
$custom-light: #4d6369;
$custom-dark: #000000;
JSON
{
  "hex": "#042a31",
  "rgb": {
    "r": 4,
    "g": 42,
    "b": 49
  },
  "hsl": {
    "h": 189.333,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.26305,
    "c": 0.04268,
    "h": 212.9
  },
  "luminance": 0.01903
}

Semantic roles & 50–950 ramp

primary
#042A31
secondary
#732B1D
accent
#4D2DFB
background
#F4F5F6
surface
#E7EAEB
border
#C3C6C6
text
#020506
muted
#78797A

Preview Lab

Preview with #042A31

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

Preview Lab → · Contrast checker → · Palette generator →

#042A31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva