#21155F#21155F

#21155F is a dark, vivid blue. Relative luminance 0.017; OKLCH L 26.9% C 0.123 H 281.6°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#21155F
RGBrgb(33, 21, 95)
HSLhsl(250, 64%, 23%)
HSVhsv(250, 78%, 37%)
CMYKcmyk(65.3%, 77.9%, 0%, 62.7%)
CIE-LABlab(13.74, 29.11, -41.85)
CIE-LCHlch(13.74, 50.98, 304.82°)
OKLaboklab(26.91% 0.0248 -0.1207)
OKLCHoklch(26.91% 0.123 281.6)
XYZxyz(2.9603, 1.6857, 10.9936)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21155F #535F15
analogous
#152E5F #21155F #46155F
triadic
#21155F #5F2115 #155F21
tetradic
#21155F #5F152E #535F15 #155F46
square
#21155F #5F152E #535F15 #155F46
split-complementary
#21155F #5F4615 #2E5F15
monochromatic
#090619 #100A2D #21155F #322091 #442BC3

Accessibility & contrast

On white

15.70
#21155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#21155F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21155F
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21155F#FFFFFF#000000##FFFFFF
##21155F1.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00205E
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #21155f;
/* rgb */ color: rgb(33, 21, 95);
/* oklch */ color: oklch(26.9% 0.123 281.6);
Tailwind
colors: {
  custom: {
    50: '#65548d',
    500: '#21155f',
    950: '#000000',
  },
}
SCSS
$custom: #21155f;
$custom-light: #65548d;
$custom-dark: #000000;
JSON
{
  "hex": "#21155f",
  "rgb": {
    "r": 33,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 249.73,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.26912,
    "c": 0.1232,
    "h": 281.6
  },
  "luminance": 0.01686
}

Semantic roles & 50–950 ramp

primary
#21155F
secondary
#87963A
accent
#E741CC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #21155F

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

Preview Lab → · Contrast checker → · Palette generator →

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