#22156A#22156A

#22156A is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.138 H 279.8°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#22156A
RGBrgb(34, 21, 106)
HSLhsl(249, 67%, 25%)
HSVhsv(249, 80%, 42%)
CMYKcmyk(67.9%, 80.2%, 0%, 58.4%)
CIE-LABlab(15.04, 32.99, -46.98)
CIE-LCHlch(15.04, 57.40, 305.07°)
OKLaboklab(28.22% 0.0235 -0.1356)
OKLCHoklch(28.22% 0.138 279.8)
XYZxyz(3.5285, 1.9167, 13.8169)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22156A #5D6A15
analogous
#15336A #22156A #4C156A
triadic
#22156A #6A2215 #156A22
tetradic
#22156A #6A1533 #5D6A15 #156A4C
square
#22156A #6A1533 #5D6A15 #156A4C
split-complementary
#22156A #6A4C15 #336A15
monochromatic
#08051A #120B37 #22156A #321F9D #4329D0

Accessibility & contrast

On white

15.18
#22156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#22156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22156A
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22156A#FFFFFF#000000##FFFFFF
##22156A1.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002268
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #22156a;
/* rgb */ color: rgb(34, 21, 106);
/* oklch */ color: oklch(28.2% 0.138 279.8);
Tailwind
colors: {
  custom: {
    50: '#685596',
    500: '#22156a',
    950: '#000000',
  },
}
SCSS
$custom: #22156a;
$custom-light: #685596;
$custom-dark: #000000;
JSON
{
  "hex": "#22156a",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 249.176,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28217,
    "c": 0.13763,
    "h": 279.8
  },
  "luminance": 0.01917
}

Semantic roles & 50–950 ramp

primary
#22156A
secondary
#91A13A
accent
#EA3ED0
background
#F6F5F9
surface
#EBE8F2
border
#C6C4CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #22156A

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

Preview Lab → · Contrast checker → · Palette generator →

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