#22157B#22157B

#22157B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.159 H 276.7°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#22157B
RGBrgb(34, 21, 123)
HSLhsl(248, 71%, 28%)
HSVhsv(248, 83%, 48%)
CMYKcmyk(72.4%, 82.9%, 0%, 51.8%)
CIE-LABlab(17.02, 38.59, -54.72)
CIE-LCHlch(17.02, 66.96, 305.19°)
OKLaboklab(30.18% 0.0186 -0.1582)
OKLCHoklch(30.18% 0.159 276.7)
XYZxyz(4.5018, 2.3061, 18.9429)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22157B #6E7B15
analogous
#153B7B #22157B #55157B
triadic
#22157B #7B2215 #157B22
tetradic
#22157B #7B153B #6E7B15 #157B55
square
#22157B #7B153B #6E7B15 #157B55
split-complementary
#22157B #7B5515 #3B7B15
monochromatic
#07041A #140C47 #22157B #301EAF #452FDB

Accessibility & contrast

On white

14.37
#22157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22157B
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22157B#FFFFFF#000000##FFFFFF
##22157B1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22157b;
/* rgb */ color: rgb(34, 21, 123);
/* oklch */ color: oklch(30.2% 0.159 276.7);
Tailwind
colors: {
  custom: {
    50: '#6c56a2',
    500: '#22157b',
    950: '#000000',
  },
}
SCSS
$custom: #22157b;
$custom-light: #6c56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#22157b",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 247.647,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30178,
    "c": 0.15924,
    "h": 276.7
  },
  "luminance": 0.02306
}

Semantic roles & 50–950 ramp

primary
#22157B
secondary
#A1B03B
accent
#EE3AD7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22157B

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

Preview Lab → · Contrast checker → · Palette generator →

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