#22217A#22217A

#22217A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.146 H 274.8°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#22217A
RGBrgb(34, 33, 122)
HSLhsl(241, 57%, 30%)
HSVhsv(241, 73%, 48%)
CMYKcmyk(72.1%, 73%, 0%, 52.2%)
CIE-LABlab(19.36, 31.31, -50.22)
CIE-LCHlch(19.36, 59.18, 301.94°)
OKLaboklab(31.8% 0.0121 -0.1451)
OKLCHoklch(31.8% 0.146 274.8)
XYZxyz(4.7152, 2.8325, 18.7068)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22217A #797A21
analogous
#214C7A #22217A #4E217A
triadic
#22217A #7A2221 #217A22
tetradic
#22217A #7A214C #797A21 #217A4E
square
#22217A #7A214C #797A21 #217A4E
split-complementary
#22217A #7A4E21 #4C7A21
monochromatic
#07071A #15144A #22217A #2F2EAA #4948CD

Accessibility & contrast

On white

13.40
#22217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#22217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22217A
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22217A#FFFFFF#000000##FFFFFF
##22217A1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #22217a;
/* rgb */ color: rgb(34, 33, 122);
/* oklch */ color: oklch(31.8% 0.146 274.8);
Tailwind
colors: {
  custom: {
    50: '#6b5da1',
    500: '#22217a',
    950: '#000000',
  },
}
SCSS
$custom: #22217a;
$custom-light: #6b5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#22217a",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 240.674,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.318,
    "c": 0.14564,
    "h": 274.8
  },
  "luminance": 0.02833
}

Semantic roles & 50–950 ramp

primary
#22217A
secondary
#ACAD4A
accent
#E147DF
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08040F
muted
#7A797F

Preview Lab

Preview with #22217A

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

Preview Lab → · Contrast checker → · Palette generator →

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