#22222A#22222A

#22222A is a dark, near-neutral blue. Relative luminance 0.017; OKLCH L 25.5% C 0.015 H 285.3°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#22222A
RGBrgb(34, 34, 42)
HSLhsl(240, 11%, 15%)
HSVhsv(240, 19%, 16%)
CMYKcmyk(19%, 19%, 0%, 83.5%)
CIE-LABlab(13.54, 2.13, -5.32)
CIE-LCHlch(13.54, 5.73, 291.81°)
OKLaboklab(25.54% 0.0039 -0.0144)
OKLCHoklch(25.54% 0.015 285.3)
XYZxyz(1.6495, 1.6513, 2.4219)
Luminance0.0165 (WCAG relative)
Temperatureneutral
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22222A #2A2A22
analogous
#22262A #22222A #26222A
triadic
#22222A #2A2222 #222A22
tetradic
#22222A #2A2226 #2A2A22 #222A26
square
#22222A #2A2226 #2A2A22 #222A26
split-complementary
#22222A #2A2622 #262A22
monochromatic
#0E0E11 #0E0E11 #22222A #3D3D4C #59596E

Accessibility & contrast

On white

15.79
#22222A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#22222A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22222A
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22222A#FFFFFF#000000##FFFFFF
##22222A1.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20232A
Deuteranopia (green-blind)
#20222A
Tritanopia (blue-blind)
#202325
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #22222a;
/* rgb */ color: rgb(34, 34, 42);
/* oklch */ color: oklch(25.5% 0.015 285.3);
Tailwind
colors: {
  custom: {
    50: '#5d5c63',
    500: '#22222a',
    950: '#000000',
  },
}
SCSS
$custom: #22222a;
$custom-light: #5d5c63;
$custom-dark: #000000;
JSON
{
  "hex": "#22222a",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 42
  },
  "hsl": {
    "h": 240,
    "s": 10.526,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25543,
    "c": 0.01495,
    "h": 285.3
  },
  "luminance": 0.01651
}

Semantic roles & 50–950 ramp

primary
#22222A
secondary
#5A5A4E
accent
#B374B3
background
#F5F5F5
surface
#E9E9EA
border
#C5C5C6
text
#040405
muted
#797979

Preview Lab

Preview with #22222A

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

Preview Lab → · Contrast checker → · Palette generator →

#22222A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva