#042018#042018

#042018 is a very dark, muted teal. Relative luminance 0.011; OKLCH L 21.9% C 0.038 H 170.9°. Best body text is #FFFFFF at 17.14:1 contrast (WCAG AA passes).

Color values

HEX#042018
RGBrgb(4, 32, 24)
HSLhsl(163, 78%, 7%)
HSVhsv(163, 88%, 13%)
CMYKcmyk(87.5%, 0%, 25%, 87.5%)
CIE-LABlab(9.99, -13.10, 2.34)
CIE-LCHlch(9.99, 13.31, 169.87°)
OKLaboklab(21.93% -0.0373 0.006)
OKLCHoklch(21.93% 0.038 170.9)
XYZxyz(0.7314, 1.1247, 1.0425)
Luminance0.0112 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042018 #20040C
analogous
#04200A #042018 #041A20
triadic
#042018 #180420 #201804
tetradic
#042018 #0A0420 #20040C #1A2004
square
#042018 #0A0420 #20040C #1A2004
split-complementary
#042018 #20041A #200A04
monochromatic
#031B14 #031B14 #042018 #0B5641 #128D6A

Accessibility & contrast

On white

17.14
#042018 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#042018 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042018
17.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042018#FFFFFF#000000##FFFFFF
##0420181.0017.141.2217.14
#FFFFFF17.141.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F1D18
Deuteranopia (green-blind)
#1B1A19
Tritanopia (blue-blind)
#00201E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #042018;
/* rgb */ color: rgb(4, 32, 24);
/* oklch */ color: oklch(21.9% 0.038 170.9);
Tailwind
colors: {
  custom: {
    50: '#485b54',
    500: '#042018',
    950: '#000000',
  },
}
SCSS
$custom: #042018;
$custom-light: #485b54;
$custom-dark: #000000;
JSON
{
  "hex": "#042018",
  "rgb": {
    "r": 4,
    "g": 32,
    "b": 24
  },
  "hsl": {
    "h": 162.857,
    "s": 77.778,
    "l": 7.059
  },
  "oklch": {
    "l": 0.21931,
    "c": 0.03779,
    "h": 170.9
  },
  "luminance": 0.01125
}

Semantic roles & 50–950 ramp

primary
#042018
secondary
#631D31
accent
#346BF4
background
#F4F5F4
surface
#E6E9E7
border
#C2C5C3
text
#000402
muted
#777978

Preview Lab

Preview with #042018

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

Preview Lab → · Contrast checker → · Palette generator →

#042018 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva