#22158A#22158A

#22158A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.177 H 274.6°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#22158A
RGBrgb(34, 21, 138)
HSLhsl(247, 74%, 31%)
HSVhsv(247, 85%, 54%)
CMYKcmyk(75.4%, 84.8%, 0%, 45.9%)
CIE-LABlab(18.85, 43.36, -61.19)
CIE-LCHlch(18.85, 74.99, 305.32°)
OKLaboklab(31.98% 0.0142 -0.1769)
OKLCHoklch(31.98% 0.177 274.6)
XYZxyz(5.5138, 2.7108, 24.2725)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22158A #7D8A15
analogous
#15428A #22158A #5C158A
triadic
#22158A #8A2215 #158A22
tetradic
#22158A #8A1542 #7D8A15 #158A5C
square
#22158A #8A1542 #7D8A15 #158A5C
split-complementary
#22158A #8A5C15 #428A15
monochromatic
#080520 #150D55 #22158A #2F1DBF #4B39E1

Accessibility & contrast

On white

13.62
#22158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#22158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22158A
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22158A#FFFFFF#000000##FFFFFF
##22158A1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002888
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #22158a;
/* rgb */ color: rgb(34, 21, 138);
/* oklch */ color: oklch(32.0% 0.177 274.6);
Tailwind
colors: {
  custom: {
    50: '#7057ad',
    500: '#22158a',
    950: '#000000',
  },
}
SCSS
$custom: #22158a;
$custom-light: #7057ad;
$custom-dark: #000000;
JSON
{
  "hex": "#22158a",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 246.667,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31975,
    "c": 0.17749,
    "h": 274.6
  },
  "luminance": 0.02711
}

Semantic roles & 50–950 ramp

primary
#22158A
secondary
#B0BE3D
accent
#F038DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #22158A

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

Preview Lab → · Contrast checker → · Palette generator →

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