#22157E#22157E

#22157E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.163 H 276.3°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#22157E
RGBrgb(34, 21, 126)
HSLhsl(247, 71%, 29%)
HSVhsv(247, 83%, 49%)
CMYKcmyk(73%, 83.3%, 0%, 50.6%)
CIE-LABlab(17.38, 39.56, -56.04)
CIE-LCHlch(17.38, 68.60, 305.22°)
OKLaboklab(30.53% 0.0177 -0.162)
OKLCHoklch(30.53% 0.163 276.3)
XYZxyz(4.6925, 2.3823, 19.9472)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22157E #717E15
analogous
#153D7E #22157E #57157E
triadic
#22157E #7E2215 #157E22
tetradic
#22157E #7E153D #717E15 #157E57
square
#22157E #7E153D #717E15 #157E57
split-complementary
#22157E #7E5715 #3D7E15
monochromatic
#07041A #140C4A #22157E #301EB2 #4631DD

Accessibility & contrast

On white

14.22
#22157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#22157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22157E
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22157E#FFFFFF#000000##FFFFFF
##22157E1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #22157e;
/* rgb */ color: rgb(34, 21, 126);
/* oklch */ color: oklch(30.5% 0.163 276.3);
Tailwind
colors: {
  custom: {
    50: '#6d56a5',
    500: '#22157e',
    950: '#000000',
  },
}
SCSS
$custom: #22157e;
$custom-light: #6d56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#22157e",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 247.429,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30533,
    "c": 0.16295,
    "h": 276.3
  },
  "luminance": 0.02383
}

Semantic roles & 50–950 ramp

primary
#22157E
secondary
#A4B33C
accent
#EE3AD8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22157E

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

Preview Lab → · Contrast checker → · Palette generator →

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