#222156#222156

#222156 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.3% C 0.093 H 279.5°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#222156
RGBrgb(34, 33, 86)
HSLhsl(241, 45%, 23%)
HSVhsv(241, 62%, 34%)
CMYKcmyk(60.5%, 61.6%, 0%, 66.3%)
CIE-LABlab(16.00, 17.99, -32.13)
CIE-LCHlch(16.00, 36.82, 299.25°)
OKLaboklab(28.31% 0.0153 -0.0921)
OKLCHoklch(28.31% 0.093 279.5)
XYZxyz(2.8827, 2.0995, 9.0556)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222156 #555621
analogous
#213A56 #222156 #3C2156
triadic
#222156 #562221 #215622
tetradic
#222156 #56213A #555621 #21563C
square
#222156 #56213A #555621 #21563C
split-complementary
#222156 #563C21 #3A5621
monochromatic
#090816 #11102A #222156 #333282 #4543AE

Accessibility & contrast

On white

14.79
#222156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#222156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222156
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222156#FFFFFF#000000##FFFFFF
##2221561.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A58
Deuteranopia (green-blind)
#002655
Tritanopia (blue-blind)
#082D37
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #222156;
/* rgb */ color: rgb(34, 33, 86);
/* oklch */ color: oklch(28.3% 0.093 279.5);
Tailwind
colors: {
  custom: {
    50: '#635c86',
    500: '#222156',
    950: '#000000',
  },
}
SCSS
$custom: #222156;
$custom-light: #635c86;
$custom-dark: #000000;
JSON
{
  "hex": "#222156",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 86
  },
  "hsl": {
    "h": 241.132,
    "s": 44.538,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28313,
    "c": 0.09334,
    "h": 279.5
  },
  "luminance": 0.021
}

Semantic roles & 50–950 ramp

primary
#222156
secondary
#898A49
accent
#D454D2
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#05040B
muted
#7A797C

Preview Lab

Preview with #222156

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

Preview Lab → · Contrast checker → · Palette generator →

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