#042A2F#042A2F

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

Color values

HEX#042A2F
RGBrgb(4, 42, 47)
HSLhsl(187, 84%, 10%)
HSVhsv(187, 91%, 18%)
CMYKcmyk(91.5%, 10.6%, 0%, 81.6%)
CIE-LABlab(14.88, -10.81, -7.03)
CIE-LCHlch(14.88, 12.89, 213.02°)
OKLaboklab(26.2% -0.0369 -0.0196)
OKLCHoklch(26.2% 0.042 207.9)
XYZxyz(1.3909, 1.8868, 2.9797)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042A2F #2F0904
analogous
#042F1F #042A2F #04142F
triadic
#042A2F #2F042A #2A2F04
tetradic
#042A2F #1F042F #2F0904 #142F04
square
#042A2F #1F042F #2F0904 #142F04
split-complementary
#042A2F #2F0414 #2F1F04
monochromatic
#02191C #02191C #042A2F #095C67 #0E8FA0

Accessibility & contrast

On white

15.25
#042A2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042A2F
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042A2F#FFFFFF#000000##FFFFFF
##042A2F1.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25282F
Deuteranopia (green-blind)
#1F242F
Tritanopia (blue-blind)
#002C2B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #042a2f;
/* rgb */ color: rgb(4, 42, 47);
/* oklch */ color: oklch(26.2% 0.042 207.9);
Tailwind
colors: {
  custom: {
    50: '#4c6367',
    500: '#042a2f',
    950: '#000000',
  },
}
SCSS
$custom: #042a2f;
$custom-light: #4c6367;
$custom-dark: #000000;
JSON
{
  "hex": "#042a2f",
  "rgb": {
    "r": 4,
    "g": 42,
    "b": 47
  },
  "hsl": {
    "h": 186.977,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.26203,
    "c": 0.04176,
    "h": 207.9
  },
  "luminance": 0.01887
}

Semantic roles & 50–950 ramp

primary
#042A2F
secondary
#72271D
accent
#452DFB
background
#F4F5F6
surface
#E7EAEB
border
#C3C6C6
text
#010506
muted
#77797A

Preview Lab

Preview with #042A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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