#22156C#22156C

#22156C is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.4% C 0.140 H 279.4°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#22156C
RGBrgb(34, 21, 108)
HSLhsl(249, 67%, 25%)
HSVhsv(249, 81%, 42%)
CMYKcmyk(68.5%, 80.6%, 0%, 57.6%)
CIE-LABlab(15.27, 33.66, -47.92)
CIE-LCHlch(15.27, 58.56, 305.08°)
OKLaboklab(28.44% 0.023 -0.1383)
OKLCHoklch(28.44% 0.14 279.4)
XYZxyz(3.6338, 1.9588, 14.3710)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22156C #5F6C15
analogous
#15336C #22156C #4E156C
triadic
#22156C #6C2215 #156C22
tetradic
#22156C #6C1533 #5F6C15 #156C4E
square
#22156C #6C1533 #5F6C15 #156C4E
split-complementary
#22156C #6C4E15 #336C15
monochromatic
#08051A #120B39 #22156C #321F9F #4229D2

Accessibility & contrast

On white

15.09
#22156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#22156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22156C
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22156C#FFFFFF#000000##FFFFFF
##22156C1.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296E
Deuteranopia (green-blind)
#00236A
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #22156c;
/* rgb */ color: rgb(34, 21, 108);
/* oklch */ color: oklch(28.4% 0.140 279.4);
Tailwind
colors: {
  custom: {
    50: '#695597',
    500: '#22156c',
    950: '#000000',
  },
}
SCSS
$custom: #22156c;
$custom-light: #695597;
$custom-dark: #000000;
JSON
{
  "hex": "#22156c",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 248.966,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28442,
    "c": 0.14024,
    "h": 279.4
  },
  "luminance": 0.01959
}

Semantic roles & 50–950 ramp

primary
#22156C
secondary
#93A33A
accent
#EA3DD0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #22156C

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

Preview Lab → · Contrast checker → · Palette generator →

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