#21158C#21158C

#21158C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.180 H 273.9°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#21158C
RGBrgb(33, 21, 140)
HSLhsl(246, 74%, 32%)
HSVhsv(246, 85%, 55%)
CMYKcmyk(76.4%, 85%, 0%, 45.1%)
CIE-LABlab(19.02, 43.91, -62.15)
CIE-LCHlch(19.02, 76.10, 305.24°)
OKLaboklab(32.15% 0.0123 -0.1797)
OKLCHoklch(32.15% 0.18 273.9)
XYZxyz(5.6274, 2.7525, 25.0406)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21158C #808C15
analogous
#15458C #21158C #5D158C
triadic
#21158C #8C2115 #158C21
tetradic
#21158C #8C1545 #808C15 #158C5D
square
#21158C #8C1545 #808C15 #158C5D
split-complementary
#21158C #8C5D15 #458C15
monochromatic
#080522 #140D57 #21158C #2E1DC1 #4B3AE1

Accessibility & contrast

On white

13.54
#21158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#21158C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21158C
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21158C#FFFFFF#000000##FFFFFF
##21158C1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00298A
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #21158c;
/* rgb */ color: rgb(33, 21, 140);
/* oklch */ color: oklch(32.2% 0.180 273.9);
Tailwind
colors: {
  custom: {
    50: '#7057af',
    500: '#21158c',
    950: '#000000',
  },
}
SCSS
$custom: #21158c;
$custom-light: #7057af;
$custom-dark: #000000;
JSON
{
  "hex": "#21158c",
  "rgb": {
    "r": 33,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 246.05,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32151,
    "c": 0.18014,
    "h": 273.9
  },
  "luminance": 0.02753
}

Semantic roles & 50–950 ramp

primary
#21158C
secondary
#B3C03D
accent
#F137DE
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #21158C

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

Preview Lab → · Contrast checker → · Palette generator →

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