#222172#222172

#222172 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.135 H 275.7°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#222172
RGBrgb(34, 33, 114)
HSLhsl(241, 55%, 29%)
HSVhsv(241, 71%, 45%)
CMYKcmyk(70.2%, 71.1%, 0%, 55.3%)
CIE-LABlab(18.55, 28.40, -46.41)
CIE-LCHlch(18.55, 54.42, 301.46°)
OKLaboklab(30.97% 0.0133 -0.134)
OKLCHoklch(30.97% 0.135 275.7)
XYZxyz(4.2398, 2.6423, 16.2029)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222172 #717221
analogous
#214972 #222172 #4B2172
triadic
#222172 #722221 #217222
tetradic
#222172 #722149 #717221 #21724B
square
#222172 #722149 #717221 #21724B
split-complementary
#222172 #724B21 #497221
monochromatic
#070718 #141343 #222172 #302FA1 #4644C9

Accessibility & contrast

On white

13.74
#222172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#222172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222172
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222172#FFFFFF#000000##FFFFFF
##2221721.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #222172;
/* rgb */ color: rgb(34, 33, 114);
/* oklch */ color: oklch(31.0% 0.135 275.7);
Tailwind
colors: {
  custom: {
    50: '#695d9b',
    500: '#222172',
    950: '#000000',
  },
}
SCSS
$custom: #222172;
$custom-light: #695d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#222172",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 240.741,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30971,
    "c": 0.13468,
    "h": 275.7
  },
  "luminance": 0.02643
}

Semantic roles & 50–950 ramp

primary
#222172
secondary
#A4A549
accent
#DE49DD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #222172

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

Preview Lab → · Contrast checker → · Palette generator →

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