#21156C#21156C

#21156C is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.4% C 0.140 H 278.8°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#21156C
RGBrgb(33, 21, 108)
HSLhsl(248, 67%, 25%)
HSVhsv(248, 81%, 42%)
CMYKcmyk(69.4%, 80.6%, 0%, 57.6%)
CIE-LABlab(15.18, 33.54, -48.07)
CIE-LCHlch(15.18, 58.61, 304.90°)
OKLaboklab(28.36% 0.0214 -0.1388)
OKLCHoklch(28.36% 0.14 278.8)
XYZxyz(3.6013, 1.9421, 14.3695)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21156C #606C15
analogous
#15346C #21156C #4C156C
triadic
#21156C #6C2115 #156C21
tetradic
#21156C #6C1534 #606C15 #156C4C
square
#21156C #6C1534 #606C15 #156C4C
split-complementary
#21156C #6C4C15 #346C15
monochromatic
#08051A #110B39 #21156C #311F9F #4029D2

Accessibility & contrast

On white

15.13
#21156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21156C
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21156C#FFFFFF#000000##FFFFFF
##21156C1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296E
Deuteranopia (green-blind)
#00236A
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #21156c;
/* rgb */ color: rgb(33, 21, 108);
/* oklch */ color: oklch(28.4% 0.140 278.8);
Tailwind
colors: {
  custom: {
    50: '#685597',
    500: '#21156c',
    950: '#000000',
  },
}
SCSS
$custom: #21156c;
$custom-light: #685597;
$custom-dark: #000000;
JSON
{
  "hex": "#21156c",
  "rgb": {
    "r": 33,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 248.276,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28357,
    "c": 0.14045,
    "h": 278.8
  },
  "luminance": 0.01942
}

Semantic roles & 50–950 ramp

primary
#21156C
secondary
#94A33A
accent
#EA3DD2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #21156C

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

Preview Lab → · Contrast checker → · Palette generator →

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