#21156A#21156A

#21156A is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.1% C 0.138 H 279.2°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#21156A
RGBrgb(33, 21, 106)
HSLhsl(248, 67%, 25%)
HSVhsv(248, 80%, 42%)
CMYKcmyk(68.9%, 80.2%, 0%, 58.4%)
CIE-LABlab(14.95, 32.86, -47.13)
CIE-LCHlch(14.95, 57.46, 304.89°)
OKLaboklab(28.13% 0.022 -0.1361)
OKLCHoklch(28.13% 0.138 279.2)
XYZxyz(3.4961, 1.9000, 13.8154)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21156A #5E6A15
analogous
#15336A #21156A #4C156A
triadic
#21156A #6A2115 #156A21
tetradic
#21156A #6A1533 #5E6A15 #156A4C
square
#21156A #6A1533 #5E6A15 #156A4C
split-complementary
#21156A #6A4C15 #336A15
monochromatic
#08051A #110B37 #21156A #311F9D #4129D0

Accessibility & contrast

On white

15.22
#21156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21156A
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21156A#FFFFFF#000000##FFFFFF
##21156A1.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21156a;
/* rgb */ color: rgb(33, 21, 106);
/* oklch */ color: oklch(28.1% 0.138 279.2);
Tailwind
colors: {
  custom: {
    50: '#685496',
    500: '#21156a',
    950: '#000000',
  },
}
SCSS
$custom: #21156a;
$custom-light: #685496;
$custom-dark: #000000;
JSON
{
  "hex": "#21156a",
  "rgb": {
    "r": 33,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 248.471,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.2813,
    "c": 0.13785,
    "h": 279.2
  },
  "luminance": 0.019
}

Semantic roles & 50–950 ramp

primary
#21156A
secondary
#92A13A
accent
#EA3ED2
background
#F6F5F9
surface
#EBE8F2
border
#C6C4CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #21156A

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

Preview Lab → · Contrast checker → · Palette generator →

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