#22156F#22156F

#22156F is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.8% C 0.144 H 278.8°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#22156F
RGBrgb(34, 21, 111)
HSLhsl(249, 68%, 26%)
HSVhsv(249, 81%, 44%)
CMYKcmyk(69.4%, 81.1%, 0%, 56.5%)
CIE-LABlab(15.61, 34.66, -49.31)
CIE-LCHlch(15.61, 60.27, 305.10°)
OKLaboklab(28.78% 0.0221 -0.1424)
OKLCHoklch(28.78% 0.144 278.8)
XYZxyz(3.7962, 2.0238, 15.2264)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22156F #626F15
analogous
#15356F #22156F #4F156F
triadic
#22156F #6F2215 #156F22
tetradic
#22156F #6F1535 #626F15 #156F4F
square
#22156F #6F1535 #626F15 #156F4F
split-complementary
#22156F #6F4F15 #356F15
monochromatic
#08051A #120B3C #22156F #321FA2 #4228D6

Accessibility & contrast

On white

14.95
#22156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22156F
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22156F#FFFFFF#000000##FFFFFF
##22156F1.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00236D
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #22156f;
/* rgb */ color: rgb(34, 21, 111);
/* oklch */ color: oklch(28.8% 0.144 278.8);
Tailwind
colors: {
  custom: {
    50: '#6a5599',
    500: '#22156f',
    950: '#000000',
  },
}
SCSS
$custom: #22156f;
$custom-light: #6a5599;
$custom-dark: #000000;
JSON
{
  "hex": "#22156f",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 248.667,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28783,
    "c": 0.14411,
    "h": 278.8
  },
  "luminance": 0.02024
}

Semantic roles & 50–950 ramp

primary
#22156F
secondary
#96A53A
accent
#EB3DD2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #22156F

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

Preview Lab → · Contrast checker → · Palette generator →

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