#21157C#21157C

#21157C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.161 H 276.0°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#21157C
RGBrgb(33, 21, 124)
HSLhsl(247, 71%, 28%)
HSVhsv(247, 83%, 49%)
CMYKcmyk(73.4%, 83.1%, 0%, 51.4%)
CIE-LABlab(17.06, 38.82, -55.30)
CIE-LCHlch(17.06, 67.56, 305.07°)
OKLaboklab(30.22% 0.0169 -0.1598)
OKLCHoklch(30.22% 0.161 276)
XYZxyz(4.5323, 2.3145, 19.2728)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21157C #707C15
analogous
#153C7C #21157C #54157C
triadic
#21157C #7C2115 #157C21
tetradic
#21157C #7C153C #707C15 #157C54
square
#21157C #7C153C #707C15 #157C54
split-complementary
#21157C #7C5415 #3C7C15
monochromatic
#07041A #130C48 #21157C #2F1EB0 #4430DC

Accessibility & contrast

On white

14.35
#21157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21157C
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21157C#FFFFFF#000000##FFFFFF
##21157C1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21157c;
/* rgb */ color: rgb(33, 21, 124);
/* oklch */ color: oklch(30.2% 0.161 276.0);
Tailwind
colors: {
  custom: {
    50: '#6c56a3',
    500: '#21157c',
    950: '#000000',
  },
}
SCSS
$custom: #21157c;
$custom-light: #6c56a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21157c",
  "rgb": {
    "r": 33,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 246.99,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30221,
    "c": 0.16074,
    "h": 276
  },
  "luminance": 0.02315
}

Semantic roles & 50–950 ramp

primary
#21157C
secondary
#A4B13C
accent
#EE3AD9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21157C

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

Preview Lab → · Contrast checker → · Palette generator →

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