#042A2E#042A2E

#042A2E is a dark, muted teal. Relative luminance 0.019; OKLCH L 26.2% C 0.041 H 205.4°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#042A2E
RGBrgb(4, 42, 46)
HSLhsl(186, 84%, 10%)
HSVhsv(186, 91%, 18%)
CMYKcmyk(91.3%, 8.7%, 0%, 82%)
CIE-LABlab(14.84, -11.21, -6.38)
CIE-LCHlch(14.84, 12.90, 209.66°)
OKLaboklab(26.15% -0.0374 -0.0178)
OKLCHoklch(26.15% 0.041 205.4)
XYZxyz(1.3710, 1.8788, 2.8746)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042A2E #2E0804
analogous
#042E1D #042A2E #04152E
triadic
#042A2E #2E042A #2A2E04
tetradic
#042A2E #1D042E #2E0804 #152E04
square
#042A2E #1D042E #2E0804 #152E04
split-complementary
#042A2E #2E0415 #2E1D04
monochromatic
#021A1C #021A1C #042A2E #095D66 #0E919F

Accessibility & contrast

On white

15.26
#042A2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042A2E
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042A2E#FFFFFF#000000##FFFFFF
##042A2E1.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26282E
Deuteranopia (green-blind)
#20232E
Tritanopia (blue-blind)
#002C2B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #042a2e;
/* rgb */ color: rgb(4, 42, 46);
/* oklch */ color: oklch(26.2% 0.041 205.4);
Tailwind
colors: {
  custom: {
    50: '#4c6366',
    500: '#042a2e',
    950: '#000000',
  },
}
SCSS
$custom: #042a2e;
$custom-light: #4c6366;
$custom-dark: #000000;
JSON
{
  "hex": "#042a2e",
  "rgb": {
    "r": 4,
    "g": 42,
    "b": 46
  },
  "hsl": {
    "h": 185.714,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.26153,
    "c": 0.04144,
    "h": 205.4
  },
  "luminance": 0.01879
}

Semantic roles & 50–950 ramp

primary
#042A2E
secondary
#71251D
accent
#412EFA
background
#F4F5F6
surface
#E7EAEB
border
#C3C6C6
text
#010506
muted
#77797A

Preview Lab

Preview with #042A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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