#22157A#22157A

#22157A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.158 H 276.9°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#22157A
RGBrgb(34, 21, 122)
HSLhsl(248, 71%, 28%)
HSVhsv(248, 83%, 48%)
CMYKcmyk(72.1%, 82.8%, 0%, 52.2%)
CIE-LABlab(16.90, 38.27, -54.28)
CIE-LCHlch(16.90, 66.41, 305.18°)
OKLaboklab(30.06% 0.0189 -0.1569)
OKLCHoklch(30.06% 0.158 276.9)
XYZxyz(4.4396, 2.2811, 18.6149)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22157A #6D7A15
analogous
#153A7A #22157A #54157A
triadic
#22157A #7A2215 #157A22
tetradic
#22157A #7A153A #6D7A15 #157A54
square
#22157A #7A153A #6D7A15 #157A54
split-complementary
#22157A #7A5415 #3A7A15
monochromatic
#07041A #130C46 #22157A #311EAE #452EDB

Accessibility & contrast

On white

14.42
#22157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#22157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22157A
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22157A#FFFFFF#000000##FFFFFF
##22157A1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002578
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #22157a;
/* rgb */ color: rgb(34, 21, 122);
/* oklch */ color: oklch(30.1% 0.158 276.9);
Tailwind
colors: {
  custom: {
    50: '#6c56a2',
    500: '#22157a',
    950: '#000000',
  },
}
SCSS
$custom: #22157a;
$custom-light: #6c56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#22157a",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 247.723,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3006,
    "c": 0.15801,
    "h": 276.9
  },
  "luminance": 0.02282
}

Semantic roles & 50–950 ramp

primary
#22157A
secondary
#A0AF3B
accent
#ED3AD6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22157A

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

Preview Lab → · Contrast checker → · Palette generator →

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