#21157D#21157D

#21157D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.162 H 275.9°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#21157D
RGBrgb(33, 21, 125)
HSLhsl(247, 71%, 29%)
HSVhsv(247, 83%, 49%)
CMYKcmyk(73.6%, 83.2%, 0%, 51%)
CIE-LABlab(17.18, 39.15, -55.74)
CIE-LCHlch(17.18, 68.11, 305.08°)
OKLaboklab(30.34% 0.0166 -0.1611)
OKLCHoklch(30.34% 0.162 275.9)
XYZxyz(4.5958, 2.3399, 19.6075)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21157D #717D15
analogous
#153D7D #21157D #55157D
triadic
#21157D #7D2115 #157D21
tetradic
#21157D #7D153D #717D15 #157D55
square
#21157D #7D153D #717D15 #157D55
split-complementary
#21157D #7D5515 #3D7D15
monochromatic
#07041A #130C49 #21157D #2F1EB1 #4430DC

Accessibility & contrast

On white

14.31
#21157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21157D
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21157D#FFFFFF#000000##FFFFFF
##21157D1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00267B
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #21157d;
/* rgb */ color: rgb(33, 21, 125);
/* oklch */ color: oklch(30.3% 0.162 275.9);
Tailwind
colors: {
  custom: {
    50: '#6d56a4',
    500: '#21157d',
    950: '#000000',
  },
}
SCSS
$custom: #21157d;
$custom-light: #6d56a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21157d",
  "rgb": {
    "r": 33,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 246.923,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3034,
    "c": 0.16197,
    "h": 275.9
  },
  "luminance": 0.0234
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21157D

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

Preview Lab → · Contrast checker → · Palette generator →

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