#21158E#21158E

#21158E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.182 H 273.7°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#21158E
RGBrgb(33, 21, 142)
HSLhsl(246, 74%, 32%)
HSVhsv(246, 85%, 56%)
CMYKcmyk(76.8%, 85.2%, 0%, 44.3%)
CIE-LABlab(19.28, 44.53, -62.98)
CIE-LCHlch(19.28, 77.13, 305.26°)
OKLaboklab(32.4% 0.0117 -0.1821)
OKLCHoklch(32.4% 0.183 273.7)
XYZxyz(5.7762, 2.8121, 25.8243)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21158E #828E15
analogous
#15468E #21158E #5D158E
triadic
#21158E #8E2115 #158E21
tetradic
#21158E #8E1546 #828E15 #158E5D
square
#21158E #8E1546 #828E15 #158E5D
split-complementary
#21158E #8E5D15 #468E15
monochromatic
#080523 #150D59 #21158E #2D1DC3 #4C3BE2

Accessibility & contrast

On white

13.44
#21158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#21158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21158E
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21158E#FFFFFF#000000##FFFFFF
##21158E1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21158e;
/* rgb */ color: rgb(33, 21, 142);
/* oklch */ color: oklch(32.4% 0.182 273.7);
Tailwind
colors: {
  custom: {
    50: '#7157b0',
    500: '#21158e',
    950: '#000000',
  },
}
SCSS
$custom: #21158e;
$custom-light: #7157b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21158e",
  "rgb": {
    "r": 33,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 245.95,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32396,
    "c": 0.1825,
    "h": 273.7
  },
  "luminance": 0.02813
}

Semantic roles & 50–950 ramp

primary
#21158E
secondary
#B4C23D
accent
#F137DE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #21158E

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

Preview Lab → · Contrast checker → · Palette generator →

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