#222472#222472

#222472 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.131 H 274.8°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#222472
RGBrgb(34, 36, 114)
HSLhsl(239, 54%, 29%)
HSVhsv(239, 70%, 45%)
CMYKcmyk(70.2%, 68.4%, 0%, 55.3%)
CIE-LABlab(19.29, 26.41, -45.20)
CIE-LCHlch(19.29, 52.35, 300.29°)
OKLaboklab(31.51% 0.0109 -0.1304)
OKLCHoklch(31.51% 0.131 274.8)
XYZxyz(4.3268, 2.8164, 16.2319)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222472 #727022
analogous
#224C72 #222472 #482272
triadic
#222472 #722224 #247222
tetradic
#222472 #72224C #727022 #227248
square
#222472 #72224C #727022 #227248
split-complementary
#222472 #724822 #4C7222
monochromatic
#070718 #141543 #222472 #3033A1 #464AC8

Accessibility & contrast

On white

13.43
#222472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#222472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222472
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222472#FFFFFF#000000##FFFFFF
##2224721.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #222472;
/* rgb */ color: rgb(34, 36, 114);
/* oklch */ color: oklch(31.5% 0.131 274.8);
Tailwind
colors: {
  custom: {
    50: '#695f9b',
    500: '#222472',
    950: '#000000',
  },
}
SCSS
$custom: #222472;
$custom-light: #695f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#222472",
  "rgb": {
    "r": 34,
    "g": 36,
    "b": 114
  },
  "hsl": {
    "h": 238.5,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31509,
    "c": 0.13091,
    "h": 274.8
  },
  "luminance": 0.02817
}

Semantic roles & 50–950 ramp

primary
#222472
secondary
#A5A34B
accent
#DA4ADD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #222472

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

Preview Lab → · Contrast checker → · Palette generator →

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