#042227#042227

#042227 is a very dark, muted teal. Relative luminance 0.013; OKLCH L 23.3% C 0.036 H 210.5°. Best body text is #FFFFFF at 16.62:1 contrast (WCAG AA passes).

Color values

HEX#042227
RGBrgb(4, 34, 39)
HSLhsl(189, 81%, 8%)
HSVhsv(189, 90%, 15%)
CMYKcmyk(89.7%, 12.8%, 0%, 84.7%)
CIE-LABlab(11.39, -8.93, -6.59)
CIE-LCHlch(11.39, 11.10, 216.44°)
OKLaboklab(23.26% -0.0311 -0.0184)
OKLCHoklch(23.26% 0.036 210.5)
XYZxyz(0.9881, 1.3162, 2.1210)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042227 #270904
analogous
#04271A #042227 #041027
triadic
#042227 #270422 #222704
tetradic
#042227 #1A0427 #270904 #102704
square
#042227 #1A0427 #270904 #102704
split-complementary
#042227 #270410 #271A04
monochromatic
#03181C #03181C #042227 #0A525F #0F8396

Accessibility & contrast

On white

16.62
#042227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#042227 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042227
16.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042227#FFFFFF#000000##FFFFFF
##0422271.0016.621.2616.62
#FFFFFF16.621.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2027
Deuteranopia (green-blind)
#191D27
Tritanopia (blue-blind)
#002424
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #042227;
/* rgb */ color: rgb(4, 34, 39);
/* oklch */ color: oklch(23.3% 0.036 210.5);
Tailwind
colors: {
  custom: {
    50: '#4a5d61',
    500: '#042227',
    950: '#000000',
  },
}
SCSS
$custom: #042227;
$custom-light: #4a5d61;
$custom-dark: #000000;
JSON
{
  "hex": "#042227",
  "rgb": {
    "r": 4,
    "g": 34,
    "b": 39
  },
  "hsl": {
    "h": 188.571,
    "s": 81.395,
    "l": 8.431
  },
  "oklch": {
    "l": 0.23262,
    "c": 0.03613,
    "h": 210.5
  },
  "luminance": 0.01316
}

Semantic roles & 50–950 ramp

primary
#042227
secondary
#6A281D
accent
#4D30F8
background
#F4F5F5
surface
#E7E9E9
border
#C3C5C5
text
#010405
muted
#777979

Preview Lab

Preview with #042227

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

Preview Lab → · Contrast checker → · Palette generator →

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