#21156D#21156D

#21156D is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.5% C 0.142 H 278.6°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#21156D
RGBrgb(33, 21, 109)
HSLhsl(248, 68%, 25%)
HSVhsv(248, 81%, 43%)
CMYKcmyk(69.7%, 80.7%, 0%, 57.3%)
CIE-LABlab(15.29, 33.87, -48.53)
CIE-LCHlch(15.29, 59.18, 304.91°)
OKLaboklab(28.47% 0.0212 -0.1402)
OKLCHoklch(28.47% 0.142 278.6)
XYZxyz(3.6548, 1.9635, 14.6514)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21156D #616D15
analogous
#15356D #21156D #4D156D
triadic
#21156D #6D2115 #156D21
tetradic
#21156D #6D1535 #616D15 #156D4D
square
#21156D #6D1535 #616D15 #156D4D
split-complementary
#21156D #6D4D15 #356D15
monochromatic
#08051A #110B3A #21156D #311FA0 #4029D4

Accessibility & contrast

On white

15.08
#21156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#21156D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21156D
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21156D#FFFFFF#000000##FFFFFF
##21156D1.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6F
Deuteranopia (green-blind)
#00236B
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #21156d;
/* rgb */ color: rgb(33, 21, 109);
/* oklch */ color: oklch(28.5% 0.142 278.6);
Tailwind
colors: {
  custom: {
    50: '#695598',
    500: '#21156d',
    950: '#000000',
  },
}
SCSS
$custom: #21156d;
$custom-light: #695598;
$custom-dark: #000000;
JSON
{
  "hex": "#21156d",
  "rgb": {
    "r": 33,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 248.182,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28471,
    "c": 0.14176,
    "h": 278.6
  },
  "luminance": 0.01964
}

Semantic roles & 50–950 ramp

primary
#21156D
secondary
#95A33A
accent
#EB3DD3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #21156D

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

Preview Lab → · Contrast checker → · Palette generator →

#21156D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva