#21155E#21155E

#21155E is a dark, vivid blue. Relative luminance 0.017; OKLCH L 26.8% C 0.122 H 281.9°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#21155E
RGBrgb(33, 21, 94)
HSLhsl(250, 63%, 23%)
HSVhsv(250, 78%, 37%)
CMYKcmyk(64.9%, 77.7%, 0%, 63.1%)
CIE-LABlab(13.64, 28.77, -41.36)
CIE-LCHlch(13.64, 50.38, 304.82°)
OKLaboklab(26.8% 0.0251 -0.1192)
OKLCHoklch(26.8% 0.122 281.9)
XYZxyz(2.9151, 1.6676, 10.7558)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21155E #525E15
analogous
#152E5E #21155E #45155E
triadic
#21155E #5E2115 #155E21
tetradic
#21155E #5E152E #525E15 #155E45
square
#21155E #5E152E #525E15 #155E45
split-complementary
#21155E #5E4515 #2E5E15
monochromatic
#090619 #0F0A2C #21155E #332090 #442BC2

Accessibility & contrast

On white

15.75
#21155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#21155E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21155E
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21155E#FFFFFF#000000##FFFFFF
##21155E1.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#00205D
Tritanopia (blue-blind)
#002938
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #21155e;
/* rgb */ color: rgb(33, 21, 94);
/* oklch */ color: oklch(26.8% 0.122 281.9);
Tailwind
colors: {
  custom: {
    50: '#65548c',
    500: '#21155e',
    950: '#000000',
  },
}
SCSS
$custom: #21155e;
$custom-light: #65548c;
$custom-dark: #000000;
JSON
{
  "hex": "#21155e",
  "rgb": {
    "r": 33,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 249.863,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26804,
    "c": 0.12184,
    "h": 281.9
  },
  "luminance": 0.01668
}

Semantic roles & 50–950 ramp

primary
#21155E
secondary
#869539
accent
#E741CB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #21155E

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

Preview Lab → · Contrast checker → · Palette generator →

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