#042F2A#042F2A

#042F2A is a dark, muted teal. Relative luminance 0.022; OKLCH L 27.6% C 0.046 H 183.3°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#042F2A
RGBrgb(4, 47, 42)
HSLhsl(173, 84%, 10%)
HSVhsv(173, 91%, 18%)
CMYKcmyk(91.5%, 0%, 10.6%, 81.6%)
CIE-LABlab(16.63, -15.67, -0.90)
CIE-LCHlch(16.63, 15.70, 183.28°)
OKLaboklab(27.56% -0.0459 -0.0027)
OKLCHoklch(27.56% 0.046 183.3)
XYZxyz(1.4843, 2.2258, 2.5414)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F2A #2F0409
analogous
#042F14 #042F2A #041F2F
triadic
#042F2A #2A042F #2F2A04
tetradic
#042F2A #14042F #2F0409 #1F2F04
square
#042F2A #14042F #2F0409 #1F2F04
split-complementary
#042F2A #2F041F #2F1404
monochromatic
#021C19 #021C19 #042F2A #09675C #0EA08F

Accessibility & contrast

On white

14.53
#042F2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#042F2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042F2A
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042F2A#FFFFFF#000000##FFFFFF
##042F2A1.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2C2A
Deuteranopia (green-blind)
#26272A
Tritanopia (blue-blind)
#00302D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #042f2a;
/* rgb */ color: rgb(4, 47, 42);
/* oklch */ color: oklch(27.6% 0.046 183.3);
Tailwind
colors: {
  custom: {
    50: '#4d6863',
    500: '#042f2a',
    950: '#000000',
  },
}
SCSS
$custom: #042f2a;
$custom-light: #4d6863;
$custom-dark: #000000;
JSON
{
  "hex": "#042f2a",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 42
  },
  "hsl": {
    "h": 173.023,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.27558,
    "c": 0.04598,
    "h": 183.3
  },
  "luminance": 0.02226
}

Semantic roles & 50–950 ramp

primary
#042F2A
secondary
#721D27
accent
#2D45FB
background
#F4F6F5
surface
#E7EBEA
border
#C3C6C6
text
#020605
muted
#787A79

Preview Lab

Preview with #042F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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