#21157B#21157B

#21157B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.160 H 276.2°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#21157B
RGBrgb(33, 21, 123)
HSLhsl(247, 71%, 28%)
HSVhsv(247, 83%, 48%)
CMYKcmyk(73.2%, 82.9%, 0%, 51.8%)
CIE-LABlab(16.94, 38.50, -54.86)
CIE-LCHlch(16.94, 67.02, 305.06°)
OKLaboklab(30.1% 0.0172 -0.1586)
OKLCHoklch(30.1% 0.16 276.2)
XYZxyz(4.4693, 2.2893, 18.9414)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21157B #6F7B15
analogous
#153C7B #21157B #54157B
triadic
#21157B #7B2115 #157B21
tetradic
#21157B #7B153C #6F7B15 #157B54
square
#21157B #7B153C #6F7B15 #157B54
split-complementary
#21157B #7B5415 #3C7B15
monochromatic
#07041A #130C47 #21157B #2F1EAF #432FDB

Accessibility & contrast

On white

14.40
#21157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#21157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21157B
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21157B#FFFFFF#000000##FFFFFF
##21157B1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002579
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #21157b;
/* rgb */ color: rgb(33, 21, 123);
/* oklch */ color: oklch(30.1% 0.160 276.2);
Tailwind
colors: {
  custom: {
    50: '#6c56a2',
    500: '#21157b',
    950: '#000000',
  },
}
SCSS
$custom: #21157b;
$custom-light: #6c56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21157b",
  "rgb": {
    "r": 33,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 247.059,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30102,
    "c": 0.1595,
    "h": 276.2
  },
  "luminance": 0.0229
}

Semantic roles & 50–950 ramp

primary
#21157B
secondary
#A3B03B
accent
#EE3AD8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21157B

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

Preview Lab → · Contrast checker → · Palette generator →

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