#222173#222173

#222173 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.136 H 275.6°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#222173
RGBrgb(34, 33, 115)
HSLhsl(241, 55%, 29%)
HSVhsv(241, 71%, 45%)
CMYKcmyk(70.4%, 71.3%, 0%, 54.9%)
CIE-LABlab(18.65, 28.77, -46.90)
CIE-LCHlch(18.65, 55.02, 301.53°)
OKLaboklab(31.07% 0.0132 -0.1354)
OKLCHoklch(31.07% 0.136 275.6)
XYZxyz(4.2970, 2.6652, 16.5043)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222173 #727321
analogous
#214973 #222173 #4B2173
triadic
#222173 #732221 #217322
tetradic
#222173 #732149 #727321 #21734B
square
#222173 #732149 #727321 #21734B
split-complementary
#222173 #734B21 #497321
monochromatic
#070718 #141343 #222173 #302FA3 #4645CA

Accessibility & contrast

On white

13.70
#222173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222173
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222173#FFFFFF#000000##FFFFFF
##2221731.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #222173;
/* rgb */ color: rgb(34, 33, 115);
/* oklch */ color: oklch(31.1% 0.136 275.6);
Tailwind
colors: {
  custom: {
    50: '#695d9c',
    500: '#222173',
    950: '#000000',
  },
}
SCSS
$custom: #222173;
$custom-light: #695d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#222173",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 240.732,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31073,
    "c": 0.13607,
    "h": 275.6
  },
  "luminance": 0.02666
}

Semantic roles & 50–950 ramp

primary
#222173
secondary
#A5A649
accent
#DF49DD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #222173

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

Preview Lab → · Contrast checker → · Palette generator →

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