#222168#222168

#222168 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.0% C 0.120 H 276.9°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#222168
RGBrgb(34, 33, 104)
HSLhsl(241, 52%, 27%)
HSVhsv(241, 68%, 41%)
CMYKcmyk(67.3%, 68.3%, 0%, 59.2%)
CIE-LABlab(17.59, 24.71, -41.50)
CIE-LCHlch(17.59, 48.30, 300.78°)
OKLaboklab(29.97% 0.0145 -0.1196)
OKLCHoklch(29.97% 0.12 276.9)
XYZxyz(3.7014, 2.4270, 13.3674)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222168 #676821
analogous
#214468 #222168 #462168
triadic
#222168 #682221 #216822
tetradic
#222168 #682144 #676821 #216846
square
#222168 #682144 #676821 #216846
split-complementary
#222168 #684621 #446821
monochromatic
#080717 #13123A #222168 #313096 #4341C3

Accessibility & contrast

On white

14.14
#222168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#222168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222168
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222168#FFFFFF#000000##FFFFFF
##2221681.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#002867
Tritanopia (blue-blind)
#003341
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #222168;
/* rgb */ color: rgb(34, 33, 104);
/* oklch */ color: oklch(30.0% 0.120 276.9);
Tailwind
colors: {
  custom: {
    50: '#675c94',
    500: '#222168',
    950: '#000000',
  },
}
SCSS
$custom: #222168;
$custom-light: #675c94;
$custom-dark: #000000;
JSON
{
  "hex": "#222168",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 240.845,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29974,
    "c": 0.12048,
    "h": 276.9
  },
  "luminance": 0.02427
}

Semantic roles & 50–950 ramp

primary
#222168
secondary
#9B9C49
accent
#DB4DD9
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #222168

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

Preview Lab → · Contrast checker → · Palette generator →

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