#042B18#042B18

#042B18 is a dark, muted teal. Relative luminance 0.018; OKLCH L 25.6% C 0.056 H 157.3°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#042B18
RGBrgb(4, 43, 24)
HSLhsl(151, 83%, 9%)
HSVhsv(151, 91%, 17%)
CMYKcmyk(90.7%, 0%, 44.2%, 83.1%)
CIE-LABlab(14.51, -19.14, 8.62)
CIE-LCHlch(14.51, 20.99, 155.77°)
OKLaboklab(25.64% -0.0518 0.0217)
OKLCHoklch(25.64% 0.056 157.3)
XYZxyz(1.0787, 1.8194, 1.1583)
Luminance0.0182 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042B18 #2B0417
analogous
#042B04 #042B18 #042B2B
triadic
#042B18 #18042B #2B1804
tetradic
#042B18 #04042B #2B0417 #2B2B04
square
#042B18 #04042B #2B0417 #2B2B04
split-complementary
#042B18 #2B042B #2B0404
monochromatic
#031C10 #031C10 #042B18 #096337 #0E9B57

Accessibility & contrast

On white

15.40
#042B18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#042B18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042B18
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042B18#FFFFFF#000000##FFFFFF
##042B181.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B2717
Deuteranopia (green-blind)
#262319
Tritanopia (blue-blind)
#002B26
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #042b18;
/* rgb */ color: rgb(4, 43, 24);
/* oklch */ color: oklch(25.6% 0.056 157.3);
Tailwind
colors: {
  custom: {
    50: '#4a6554',
    500: '#042b18',
    950: '#000000',
  },
}
SCSS
$custom: #042b18;
$custom-light: #4a6554;
$custom-dark: #000000;
JSON
{
  "hex": "#042b18",
  "rgb": {
    "r": 4,
    "g": 43,
    "b": 24
  },
  "hsl": {
    "h": 150.769,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.25644,
    "c": 0.05611,
    "h": 157.3
  },
  "luminance": 0.0182
}

Semantic roles & 50–950 ramp

primary
#042B18
secondary
#6E1D44
accent
#2E91F9
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010502
muted
#777A78

Preview Lab

Preview with #042B18

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

Preview Lab → · Contrast checker → · Palette generator →

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