#21157A#21157A

#21157A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.158 H 276.3°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#21157A
RGBrgb(33, 21, 122)
HSLhsl(247, 71%, 28%)
HSVhsv(247, 83%, 48%)
CMYKcmyk(73%, 82.8%, 0%, 52.2%)
CIE-LABlab(16.82, 38.17, -54.42)
CIE-LCHlch(16.82, 66.47, 305.05°)
OKLaboklab(29.98% 0.0175 -0.1573)
OKLCHoklch(29.98% 0.158 276.3)
XYZxyz(4.4071, 2.2644, 18.6134)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21157A #6E7A15
analogous
#153B7A #21157A #53157A
triadic
#21157A #7A2115 #157A21
tetradic
#21157A #7A153B #6E7A15 #157A53
square
#21157A #7A153B #6E7A15 #157A53
split-complementary
#21157A #7A5315 #3B7A15
monochromatic
#07041A #130C46 #21157A #2F1EAE #432EDB

Accessibility & contrast

On white

14.45
#21157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#21157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21157A
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21157A#FFFFFF#000000##FFFFFF
##21157A1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002578
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #21157a;
/* rgb */ color: rgb(33, 21, 122);
/* oklch */ color: oklch(30.0% 0.158 276.3);
Tailwind
colors: {
  custom: {
    50: '#6c56a2',
    500: '#21157a',
    950: '#000000',
  },
}
SCSS
$custom: #21157a;
$custom-light: #6c56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21157a",
  "rgb": {
    "r": 33,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 247.129,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29984,
    "c": 0.15826,
    "h": 276.3
  },
  "luminance": 0.02265
}

Semantic roles & 50–950 ramp

primary
#21157A
secondary
#A2AF3B
accent
#ED3AD8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21157A

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

Preview Lab → · Contrast checker → · Palette generator →

#21157A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva