#21158F#21158F

#21158F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.5% C 0.184 H 273.6°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#21158F
RGBrgb(33, 21, 143)
HSLhsl(246, 74%, 32%)
HSVhsv(246, 85%, 56%)
CMYKcmyk(76.9%, 85.3%, 0%, 43.9%)
CIE-LABlab(19.40, 44.84, -63.40)
CIE-LCHlch(19.40, 77.65, 305.27°)
OKLaboklab(32.52% 0.0114 -0.1833)
OKLCHoklch(32.52% 0.184 273.6)
XYZxyz(5.8516, 2.8422, 26.2215)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21158F #838F15
analogous
#15468F #21158F #5E158F
triadic
#21158F #8F2115 #158F21
tetradic
#21158F #8F1546 #838F15 #158F5E
square
#21158F #8F1546 #838F15 #158F5E
split-complementary
#21158F #8F5E15 #468F15
monochromatic
#080524 #150D5A #21158F #2D1DC4 #4C3CE2

Accessibility & contrast

On white

13.39
#21158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#21158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21158F
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21158F#FFFFFF#000000##FFFFFF
##21158F1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21158f;
/* rgb */ color: rgb(33, 21, 143);
/* oklch */ color: oklch(32.5% 0.184 273.6);
Tailwind
colors: {
  custom: {
    50: '#7157b1',
    500: '#21158f',
    950: '#000000',
  },
}
SCSS
$custom: #21158f;
$custom-light: #7157b1;
$custom-dark: #000000;
JSON
{
  "hex": "#21158f",
  "rgb": {
    "r": 33,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 245.902,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32518,
    "c": 0.18368,
    "h": 273.6
  },
  "luminance": 0.02843
}

Semantic roles & 50–950 ramp

primary
#21158F
secondary
#B5C23E
accent
#F137DF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #21158F

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

Preview Lab → · Contrast checker → · Palette generator →

#21158F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva