#222228#222228

#222228 is a dark, near-neutral blue. Relative luminance 0.016; OKLCH L 25.4% C 0.011 H 285.6°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#222228
RGBrgb(34, 34, 40)
HSLhsl(240, 8%, 15%)
HSVhsv(240, 15%, 16%)
CMYKcmyk(15%, 15%, 0%, 84.3%)
CIE-LABlab(13.46, 1.57, -4.00)
CIE-LCHlch(13.46, 4.30, 291.41°)
OKLaboklab(25.45% 0.003 -0.0108)
OKLCHoklch(25.45% 0.011 285.6)
XYZxyz(1.6146, 1.6373, 2.2380)
Luminance0.0164 (WCAG relative)
Temperatureneutral
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222228 #282822
analogous
#222528 #222228 #252228
triadic
#222228 #282222 #222822
tetradic
#222228 #282225 #282822 #222825
square
#222228 #282225 #282822 #222825
split-complementary
#222228 #282522 #252822
monochromatic
#0E0E11 #0E0E11 #222228 #3E3E49 #5A5A6A

Accessibility & contrast

On white

15.82
#222228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#222228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222228
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222228#FFFFFF#000000##FFFFFF
##2222281.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212328
Deuteranopia (green-blind)
#202228
Tritanopia (blue-blind)
#212324
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #222228;
/* rgb */ color: rgb(34, 34, 40);
/* oklch */ color: oklch(25.4% 0.011 285.6);
Tailwind
colors: {
  custom: {
    50: '#5d5c61',
    500: '#222228',
    950: '#000000',
  },
}
SCSS
$custom: #222228;
$custom-light: #5d5c61;
$custom-dark: #000000;
JSON
{
  "hex": "#222228",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 40
  },
  "hsl": {
    "h": 240,
    "s": 8.108,
    "l": 14.51
  },
  "oklch": {
    "l": 0.2545,
    "c": 0.0112,
    "h": 285.6
  },
  "luminance": 0.01637
}

Semantic roles & 50–950 ramp

primary
#222228
secondary
#58584E
accent
#B177B1
background
#F5F5F5
surface
#E9E9E9
border
#C5C5C5
text
#040405
muted
#797979

Preview Lab

Preview with #222228

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

Preview Lab → · Contrast checker → · Palette generator →

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