#222571#222571

#222571 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.6% C 0.128 H 274.6°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#222571
RGBrgb(34, 37, 113)
HSLhsl(238, 54%, 29%)
HSVhsv(238, 70%, 44%)
CMYKcmyk(69.9%, 67.3%, 0%, 55.7%)
CIE-LABlab(19.45, 25.35, -44.29)
CIE-LCHlch(19.45, 51.03, 299.79°)
OKLaboklab(31.6% 0.0102 -0.1278)
OKLCHoklch(31.6% 0.128 274.6)
XYZxyz(4.3009, 2.8551, 15.9440)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222571 #716E22
analogous
#224D71 #222571 #472271
triadic
#222571 #712225 #257122
tetradic
#222571 #71224D #716E22 #227147
square
#222571 #71224D #716E22 #227147
split-complementary
#222571 #714722 #4D7122
monochromatic
#070818 #141642 #222571 #3034A0 #464BC7

Accessibility & contrast

On white

13.37
#222571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#222571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222571
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222571#FFFFFF#000000##FFFFFF
##2225711.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #222571;
/* rgb */ color: rgb(34, 37, 113);
/* oklch */ color: oklch(31.6% 0.128 274.6);
Tailwind
colors: {
  custom: {
    50: '#685f9b',
    500: '#222571',
    950: '#000000',
  },
}
SCSS
$custom: #222571;
$custom-light: #685f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#222571",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 113
  },
  "hsl": {
    "h": 237.722,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31598,
    "c": 0.12819,
    "h": 274.6
  },
  "luminance": 0.02855
}

Semantic roles & 50–950 ramp

primary
#222571
secondary
#A4A14A
accent
#D84BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #222571

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

Preview Lab → · Contrast checker → · Palette generator →

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