#22158F#22158F

#22158F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.183 H 274.0°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#22158F
RGBrgb(34, 21, 143)
HSLhsl(246, 74%, 32%)
HSVhsv(246, 85%, 56%)
CMYKcmyk(76.2%, 85.3%, 0%, 43.9%)
CIE-LABlab(19.47, 44.91, -63.28)
CIE-LCHlch(19.47, 77.59, 305.36°)
OKLaboklab(32.58% 0.0128 -0.183)
OKLCHoklch(32.58% 0.183 274)
XYZxyz(5.8841, 2.8590, 26.2230)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22158F #828F15
analogous
#15458F #22158F #5F158F
triadic
#22158F #8F2215 #158F22
tetradic
#22158F #8F1545 #828F15 #158F5F
square
#22158F #8F1545 #828F15 #158F5F
split-complementary
#22158F #8F5F15 #458F15
monochromatic
#090524 #150D5A #22158F #2F1DC4 #4E3CE2

Accessibility & contrast

On white

13.36
#22158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#22158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22158F
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22158F#FFFFFF#000000##FFFFFF
##22158F1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #22158f;
/* rgb */ color: rgb(34, 21, 143);
/* oklch */ color: oklch(32.6% 0.183 274.0);
Tailwind
colors: {
  custom: {
    50: '#7157b1',
    500: '#22158f',
    950: '#000000',
  },
}
SCSS
$custom: #22158f;
$custom-light: #7157b1;
$custom-dark: #000000;
JSON
{
  "hex": "#22158f",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 246.393,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32584,
    "c": 0.18341,
    "h": 274
  },
  "luminance": 0.0286
}

Semantic roles & 50–950 ramp

primary
#22158F
secondary
#B4C23E
accent
#F137DD
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #22158F

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

Preview Lab → · Contrast checker → · Palette generator →

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