#22156D#22156D

#22156D is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.142 H 279.2°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#22156D
RGBrgb(34, 21, 109)
HSLhsl(249, 68%, 25%)
HSVhsv(249, 81%, 43%)
CMYKcmyk(68.8%, 80.7%, 0%, 57.3%)
CIE-LABlab(15.38, 33.99, -48.38)
CIE-LCHlch(15.38, 59.13, 305.09°)
OKLaboklab(28.56% 0.0227 -0.1397)
OKLCHoklch(28.56% 0.142 279.2)
XYZxyz(3.6873, 1.9802, 14.6529)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22156D #606D15
analogous
#15346D #22156D #4E156D
triadic
#22156D #6D2215 #156D22
tetradic
#22156D #6D1534 #606D15 #156D4E
square
#22156D #6D1534 #606D15 #156D4E
split-complementary
#22156D #6D4E15 #346D15
monochromatic
#08051A #120B3A #22156D #321FA0 #4229D4

Accessibility & contrast

On white

15.04
#22156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#22156D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22156D
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22156D#FFFFFF#000000##FFFFFF
##22156D1.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6F
Deuteranopia (green-blind)
#00236B
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #22156d;
/* rgb */ color: rgb(34, 21, 109);
/* oklch */ color: oklch(28.6% 0.142 279.2);
Tailwind
colors: {
  custom: {
    50: '#695598',
    500: '#22156d',
    950: '#000000',
  },
}
SCSS
$custom: #22156d;
$custom-light: #695598;
$custom-dark: #000000;
JSON
{
  "hex": "#22156d",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 248.864,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28556,
    "c": 0.14153,
    "h": 279.2
  },
  "luminance": 0.01981
}

Semantic roles & 50–950 ramp

primary
#22156D
secondary
#94A33A
accent
#EB3DD1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #22156D

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

Preview Lab → · Contrast checker → · Palette generator →

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