#21156B#21156B

#21156B is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.139 H 279.0°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#21156B
RGBrgb(33, 21, 107)
HSLhsl(248, 67%, 25%)
HSVhsv(248, 80%, 42%)
CMYKcmyk(69.2%, 80.4%, 0%, 58%)
CIE-LABlab(15.07, 33.20, -47.60)
CIE-LCHlch(15.07, 58.04, 304.90°)
OKLaboklab(28.24% 0.0217 -0.1374)
OKLCHoklch(28.24% 0.139 279)
XYZxyz(3.5484, 1.9209, 14.0908)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21156B #5F6B15
analogous
#15346B #21156B #4C156B
triadic
#21156B #6B2115 #156B21
tetradic
#21156B #6B1534 #5F6B15 #156B4C
square
#21156B #6B1534 #5F6B15 #156B4C
split-complementary
#21156B #6B4C15 #346B15
monochromatic
#08051A #110B38 #21156B #311F9E #4129D1

Accessibility & contrast

On white

15.17
#21156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#21156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21156B
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21156B#FFFFFF#000000##FFFFFF
##21156B1.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296D
Deuteranopia (green-blind)
#002269
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #21156b;
/* rgb */ color: rgb(33, 21, 107);
/* oklch */ color: oklch(28.2% 0.139 279.0);
Tailwind
colors: {
  custom: {
    50: '#685496',
    500: '#21156b',
    950: '#000000',
  },
}
SCSS
$custom: #21156b;
$custom-light: #685496;
$custom-dark: #000000;
JSON
{
  "hex": "#21156b",
  "rgb": {
    "r": 33,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 248.372,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28243,
    "c": 0.13915,
    "h": 279
  },
  "luminance": 0.01921
}

Semantic roles & 50–950 ramp

primary
#21156B
secondary
#93A23A
accent
#EA3ED2
background
#F6F5F9
surface
#EBE8F2
border
#C6C4CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #21156B

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

Preview Lab → · Contrast checker → · Palette generator →

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