#22157C#22157C

#22157C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.160 H 276.6°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#22157C
RGBrgb(34, 21, 124)
HSLhsl(248, 71%, 28%)
HSVhsv(248, 83%, 49%)
CMYKcmyk(72.6%, 83.1%, 0%, 51.4%)
CIE-LABlab(17.14, 38.91, -55.16)
CIE-LCHlch(17.14, 67.51, 305.20°)
OKLaboklab(30.3% 0.0183 -0.1594)
OKLCHoklch(30.3% 0.16 276.6)
XYZxyz(4.5648, 2.3312, 19.2743)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22157C #6F7C15
analogous
#153B7C #22157C #55157C
triadic
#22157C #7C2215 #157C22
tetradic
#22157C #7C153B #6F7C15 #157C55
square
#22157C #7C153B #6F7C15 #157C55
split-complementary
#22157C #7C5515 #3B7C15
monochromatic
#07041A #140C48 #22157C #301EB0 #4530DC

Accessibility & contrast

On white

14.32
#22157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#22157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22157C
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22157C#FFFFFF#000000##FFFFFF
##22157C1.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00267A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #22157c;
/* rgb */ color: rgb(34, 21, 124);
/* oklch */ color: oklch(30.3% 0.160 276.6);
Tailwind
colors: {
  custom: {
    50: '#6d56a3',
    500: '#22157c',
    950: '#000000',
  },
}
SCSS
$custom: #22157c;
$custom-light: #6d56a3;
$custom-dark: #000000;
JSON
{
  "hex": "#22157c",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 247.573,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30296,
    "c": 0.16048,
    "h": 276.6
  },
  "luminance": 0.02332
}

Semantic roles & 50–950 ramp

primary
#22157C
secondary
#A2B13C
accent
#EE3AD7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22157C

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

Preview Lab → · Contrast checker → · Palette generator →

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