#22157F#22157F

#22157F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.7% C 0.164 H 276.1°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#22157F
RGBrgb(34, 21, 127)
HSLhsl(247, 72%, 29%)
HSVhsv(247, 83%, 50%)
CMYKcmyk(73.2%, 83.5%, 0%, 50.2%)
CIE-LABlab(17.50, 39.88, -56.48)
CIE-LCHlch(17.50, 69.14, 305.22°)
OKLaboklab(30.65% 0.0175 -0.1632)
OKLCHoklch(30.65% 0.164 276.1)
XYZxyz(4.7574, 2.4083, 20.2887)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22157F #727F15
analogous
#153D7F #22157F #57157F
triadic
#22157F #7F2215 #157F22
tetradic
#22157F #7F153D #727F15 #157F57
square
#22157F #7F153D #727F15 #157F57
split-complementary
#22157F #7F5715 #3D7F15
monochromatic
#07041A #140C4A #22157F #301EB4 #4631DD

Accessibility & contrast

On white

14.17
#22157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22157F
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22157F#FFFFFF#000000##FFFFFF
##22157F1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #22157f;
/* rgb */ color: rgb(34, 21, 127);
/* oklch */ color: oklch(30.7% 0.164 276.1);
Tailwind
colors: {
  custom: {
    50: '#6d56a5',
    500: '#22157f',
    950: '#000000',
  },
}
SCSS
$custom: #22157f;
$custom-light: #6d56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#22157f",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 247.358,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30652,
    "c": 0.16418,
    "h": 276.1
  },
  "luminance": 0.02409
}

Semantic roles & 50–950 ramp

primary
#22157F
secondary
#A5B43C
accent
#EE39D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22157F

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

Preview Lab → · Contrast checker → · Palette generator →

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