#22217C#22217C

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

Color values

HEX#22217C
RGBrgb(34, 33, 124)
HSLhsl(241, 58%, 31%)
HSVhsv(241, 73%, 49%)
CMYKcmyk(72.6%, 73.4%, 0%, 51.4%)
CIE-LABlab(19.57, 32.02, -51.15)
CIE-LCHlch(19.57, 60.35, 302.05°)
OKLaboklab(32.01% 0.0118 -0.1479)
OKLCHoklch(32.01% 0.148 274.6)
XYZxyz(4.8404, 2.8826, 19.3662)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22217C #7B7C21
analogous
#214D7C #22217C #4F217C
triadic
#22217C #7C2221 #217C22
tetradic
#22217C #7C214D #7B7C21 #217C4F
square
#22217C #7C214D #7B7C21 #217C4F
split-complementary
#22217C #7C4F21 #4D7C21
monochromatic
#07071B #15144C #22217C #2F2EAC #4A49CF

Accessibility & contrast

On white

13.32
#22217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#22217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22217C
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22217C#FFFFFF#000000##FFFFFF
##22217C1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #22217c;
/* rgb */ color: rgb(34, 33, 124);
/* oklch */ color: oklch(32.0% 0.148 274.6);
Tailwind
colors: {
  custom: {
    50: '#6c5da3',
    500: '#22217c',
    950: '#000000',
  },
}
SCSS
$custom: #22217c;
$custom-light: #6c5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#22217c",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 240.659,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32011,
    "c": 0.14834,
    "h": 274.6
  },
  "luminance": 0.02883
}

Semantic roles & 50–950 ramp

primary
#22217C
secondary
#AEAF4A
accent
#E147DF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #22217C

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

Preview Lab → · Contrast checker → · Palette generator →

#22217C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva