#222238#222238

#222238 is a dark, muted blue. Relative luminance 0.018; OKLCH L 26.3% C 0.041 H 283.2°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#222238
RGBrgb(34, 34, 56)
HSLhsl(240, 24%, 18%)
HSVhsv(240, 39%, 22%)
CMYKcmyk(39.3%, 39.3%, 0%, 78%)
CIE-LABlab(14.23, 6.47, -14.26)
CIE-LCHlch(14.23, 15.66, 294.42°)
OKLaboklab(26.31% 0.0094 -0.0398)
OKLCHoklch(26.31% 0.041 283.2)
XYZxyz(1.9453, 1.7696, 3.9797)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222238 #383822
analogous
#222D38 #222238 #2D2238
triadic
#222238 #382222 #223822
tetradic
#222238 #38222D #383822 #22382D
square
#222238 #38222D #383822 #22382D
split-complementary
#222238 #382D22 #2D3822
monochromatic
#0C0C13 #0C0C13 #222238 #39395E #505084

Accessibility & contrast

On white

15.51
#222238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#222238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222238
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222238#FFFFFF#000000##FFFFFF
##2222381.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2539
Deuteranopia (green-blind)
#1A2337
Tritanopia (blue-blind)
#1C262A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #222238;
/* rgb */ color: rgb(34, 34, 56);
/* oklch */ color: oklch(26.3% 0.041 283.2);
Tailwind
colors: {
  custom: {
    50: '#5e5c6e',
    500: '#222238',
    950: '#000000',
  },
}
SCSS
$custom: #222238;
$custom-light: #5e5c6e;
$custom-dark: #000000;
JSON
{
  "hex": "#222238",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 56
  },
  "hsl": {
    "h": 240,
    "s": 24.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26305,
    "c": 0.04085,
    "h": 283.2
  },
  "luminance": 0.0177
}

Semantic roles & 50–950 ramp

primary
#222238
secondary
#6A6A4B
accent
#C167C1
background
#F5F5F6
surface
#E9E9EC
border
#C5C5C7
text
#040407
muted
#79797A

Preview Lab

Preview with #222238

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

Preview Lab → · Contrast checker → · Palette generator →

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