#22156E#22156E

#22156E is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.143 H 279.0°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#22156E
RGBrgb(34, 21, 110)
HSLhsl(249, 68%, 26%)
HSVhsv(249, 81%, 43%)
CMYKcmyk(69.1%, 80.9%, 0%, 56.9%)
CIE-LABlab(15.50, 34.32, -48.85)
CIE-LCHlch(15.50, 59.70, 305.09°)
OKLaboklab(28.67% 0.0224 -0.141)
OKLCHoklch(28.67% 0.143 279)
XYZxyz(3.7414, 2.0019, 14.9381)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22156E #616E15
analogous
#15346E #22156E #4E156E
triadic
#22156E #6E2215 #156E22
tetradic
#22156E #6E1534 #616E15 #156E4E
square
#22156E #6E1534 #616E15 #156E4E
split-complementary
#22156E #6E4E15 #346E15
monochromatic
#08051A #120B3B #22156E #321FA1 #4229D5

Accessibility & contrast

On white

15.00
#22156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22156E
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22156E#FFFFFF#000000##FFFFFF
##22156E1.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A71
Deuteranopia (green-blind)
#00236C
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #22156e;
/* rgb */ color: rgb(34, 21, 110);
/* oklch */ color: oklch(28.7% 0.143 279.0);
Tailwind
colors: {
  custom: {
    50: '#695599',
    500: '#22156e',
    950: '#000000',
  },
}
SCSS
$custom: #22156e;
$custom-light: #695599;
$custom-dark: #000000;
JSON
{
  "hex": "#22156e",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 248.764,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28669,
    "c": 0.14282,
    "h": 279
  },
  "luminance": 0.02002
}

Semantic roles & 50–950 ramp

primary
#22156E
secondary
#95A43A
accent
#EB3DD1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #22156E

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

Preview Lab → · Contrast checker → · Palette generator →

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