#222162#222162

#222162 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.4% C 0.112 H 277.7°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#222162
RGBrgb(34, 33, 98)
HSLhsl(241, 50%, 26%)
HSVhsv(241, 66%, 38%)
CMYKcmyk(65.3%, 66.3%, 0%, 61.6%)
CIE-LABlab(17.03, 22.48, -38.45)
CIE-LCHlch(17.03, 44.54, 300.31°)
OKLaboklab(29.4% 0.015 -0.1107)
OKLCHoklch(29.4% 0.112 277.7)
XYZxyz(3.4074, 2.3094, 11.8191)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222162 #616221
analogous
#214062 #222162 #422162
triadic
#222162 #622221 #216222
tetradic
#222162 #622140 #616221 #216242
square
#222162 #622140 #616221 #216242
split-complementary
#222162 #624221 #406221
monochromatic
#080817 #121234 #222162 #323090 #4240BE

Accessibility & contrast

On white

14.36
#222162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#222162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222162
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222162#FFFFFF#000000##FFFFFF
##2221621.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D64
Deuteranopia (green-blind)
#002761
Tritanopia (blue-blind)
#00313E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #222162;
/* rgb */ color: rgb(34, 33, 98);
/* oklch */ color: oklch(29.4% 0.112 277.7);
Tailwind
colors: {
  custom: {
    50: '#655c8f',
    500: '#222162',
    950: '#000000',
  },
}
SCSS
$custom: #222162;
$custom-light: #655c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#222162",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 240.923,
    "s": 49.618,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29399,
    "c": 0.11168,
    "h": 277.7
  },
  "luminance": 0.0231
}

Semantic roles & 50–950 ramp

primary
#222162
secondary
#959649
accent
#D94FD7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #222162

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

Preview Lab → · Contrast checker → · Palette generator →

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