#22156B#22156B

#22156B is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.3% C 0.139 H 279.6°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#22156B
RGBrgb(34, 21, 107)
HSLhsl(249, 67%, 25%)
HSVhsv(249, 80%, 42%)
CMYKcmyk(68.2%, 80.4%, 0%, 58%)
CIE-LABlab(15.16, 33.32, -47.45)
CIE-LCHlch(15.16, 57.98, 305.08°)
OKLaboklab(28.33% 0.0233 -0.137)
OKLCHoklch(28.33% 0.139 279.6)
XYZxyz(3.5808, 1.9377, 14.0924)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22156B #5E6B15
analogous
#15336B #22156B #4D156B
triadic
#22156B #6B2215 #156B22
tetradic
#22156B #6B1533 #5E6B15 #156B4D
square
#22156B #6B1533 #5E6B15 #156B4D
split-complementary
#22156B #6B4D15 #336B15
monochromatic
#08051A #120B38 #22156B #321F9E #4329D1

Accessibility & contrast

On white

15.13
#22156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22156B
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22156B#FFFFFF#000000##FFFFFF
##22156B1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22156b;
/* rgb */ color: rgb(34, 21, 107);
/* oklch */ color: oklch(28.3% 0.139 279.6);
Tailwind
colors: {
  custom: {
    50: '#695596',
    500: '#22156b',
    950: '#000000',
  },
}
SCSS
$custom: #22156b;
$custom-light: #695596;
$custom-dark: #000000;
JSON
{
  "hex": "#22156b",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 249.07,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28329,
    "c": 0.13894,
    "h": 279.6
  },
  "luminance": 0.01938
}

Semantic roles & 50–950 ramp

primary
#22156B
secondary
#92A23A
accent
#EA3ED0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #22156B

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

Preview Lab → · Contrast checker → · Palette generator →

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