#222572#222572

#222572 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.7% C 0.130 H 274.5°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#222572
RGBrgb(34, 37, 114)
HSLhsl(238, 54%, 29%)
HSVhsv(238, 70%, 45%)
CMYKcmyk(70.2%, 67.5%, 0%, 55.3%)
CIE-LABlab(19.55, 25.73, -44.78)
CIE-LCHlch(19.55, 51.65, 299.88°)
OKLaboklab(31.7% 0.0101 -0.1292)
OKLCHoklch(31.7% 0.13 274.5)
XYZxyz(4.3575, 2.8777, 16.2421)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222572 #726F22
analogous
#224D72 #222572 #472272
triadic
#222572 #722225 #257222
tetradic
#222572 #72224D #726F22 #227247
square
#222572 #72224D #726F22 #227247
split-complementary
#222572 #724722 #4D7222
monochromatic
#070818 #141643 #222572 #3034A1 #464BC8

Accessibility & contrast

On white

13.33
#222572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#222572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222572
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222572#FFFFFF#000000##FFFFFF
##2225721.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#003948
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #222572;
/* rgb */ color: rgb(34, 37, 114);
/* oklch */ color: oklch(31.7% 0.130 274.5);
Tailwind
colors: {
  custom: {
    50: '#695f9b',
    500: '#222572',
    950: '#000000',
  },
}
SCSS
$custom: #222572;
$custom-light: #695f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#222572",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 114
  },
  "hsl": {
    "h": 237.75,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31695,
    "c": 0.12962,
    "h": 274.5
  },
  "luminance": 0.02878
}

Semantic roles & 50–950 ramp

primary
#222572
secondary
#A5A24B
accent
#D84ADD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #222572

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

Preview Lab → · Contrast checker → · Palette generator →

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