#22158C#22158C

#22158C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.180 H 274.3°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#22158C
RGBrgb(34, 21, 140)
HSLhsl(247, 74%, 32%)
HSVhsv(247, 85%, 55%)
CMYKcmyk(75.7%, 85%, 0%, 45.1%)
CIE-LABlab(19.10, 43.98, -62.03)
CIE-LCHlch(19.10, 76.04, 305.34°)
OKLaboklab(32.22% 0.0136 -0.1793)
OKLCHoklch(32.22% 0.18 274.3)
XYZxyz(5.6599, 2.7693, 25.0421)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22158C #7F8C15
analogous
#15448C #22158C #5E158C
triadic
#22158C #8C2215 #158C22
tetradic
#22158C #8C1544 #7F8C15 #158C5E
square
#22158C #8C1544 #7F8C15 #158C5E
split-complementary
#22158C #8C5E15 #448C15
monochromatic
#080522 #150D57 #22158C #2F1DC1 #4C3AE1

Accessibility & contrast

On white

13.51
#22158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#22158C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22158C
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22158C#FFFFFF#000000##FFFFFF
##22158C1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00298A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #22158c;
/* rgb */ color: rgb(34, 21, 140);
/* oklch */ color: oklch(32.2% 0.180 274.3);
Tailwind
colors: {
  custom: {
    50: '#7157af',
    500: '#22158c',
    950: '#000000',
  },
}
SCSS
$custom: #22158c;
$custom-light: #7157af;
$custom-dark: #000000;
JSON
{
  "hex": "#22158c",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 246.555,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32218,
    "c": 0.17987,
    "h": 274.3
  },
  "luminance": 0.0277
}

Semantic roles & 50–950 ramp

primary
#22158C
secondary
#B2C03D
accent
#F137DC
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #22158C

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

Preview Lab → · Contrast checker → · Palette generator →

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