#21157E#21157E

#21157E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.163 H 275.7°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#21157E
RGBrgb(33, 21, 126)
HSLhsl(247, 71%, 29%)
HSVhsv(247, 83%, 49%)
CMYKcmyk(73.8%, 83.3%, 0%, 50.6%)
CIE-LABlab(17.30, 39.47, -56.17)
CIE-LCHlch(17.30, 68.65, 305.09°)
OKLaboklab(30.46% 0.0163 -0.1624)
OKLCHoklch(30.46% 0.163 275.7)
XYZxyz(4.6600, 2.3656, 19.9456)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21157E #727E15
analogous
#153E7E #21157E #56157E
triadic
#21157E #7E2115 #157E21
tetradic
#21157E #7E153E #727E15 #157E56
square
#21157E #7E153E #727E15 #157E56
split-complementary
#21157E #7E5615 #3E7E15
monochromatic
#07041A #130C4A #21157E #2F1EB2 #4431DD

Accessibility & contrast

On white

14.25
#21157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#21157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21157E
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21157E#FFFFFF#000000##FFFFFF
##21157E1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #21157e;
/* rgb */ color: rgb(33, 21, 126);
/* oklch */ color: oklch(30.5% 0.163 275.7);
Tailwind
colors: {
  custom: {
    50: '#6d56a5',
    500: '#21157e',
    950: '#000000',
  },
}
SCSS
$custom: #21157e;
$custom-light: #6d56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21157e",
  "rgb": {
    "r": 33,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 246.857,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30459,
    "c": 0.16321,
    "h": 275.7
  },
  "luminance": 0.02366
}

Semantic roles & 50–950 ramp

primary
#21157E
secondary
#A5B33C
accent
#EE3ADA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21157E

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

Preview Lab → · Contrast checker → · Palette generator →

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