#21156E#21156E

#21156E is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.143 H 278.4°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#21156E
RGBrgb(33, 21, 110)
HSLhsl(248, 68%, 26%)
HSVhsv(248, 81%, 43%)
CMYKcmyk(70%, 80.9%, 0%, 56.9%)
CIE-LABlab(15.41, 34.21, -48.99)
CIE-LCHlch(15.41, 59.76, 304.92°)
OKLaboklab(28.59% 0.0209 -0.1415)
OKLCHoklch(28.59% 0.143 278.4)
XYZxyz(3.7089, 1.9851, 14.9365)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21156E #626E15
analogous
#15356E #21156E #4D156E
triadic
#21156E #6E2115 #156E21
tetradic
#21156E #6E1535 #626E15 #156E4D
square
#21156E #6E1535 #626E15 #156E4D
split-complementary
#21156E #6E4D15 #356E15
monochromatic
#08051A #120B3B #21156E #301FA1 #4029D5

Accessibility & contrast

On white

15.03
#21156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#21156E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21156E
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21156E#FFFFFF#000000##FFFFFF
##21156E1.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A71
Deuteranopia (green-blind)
#00236C
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #21156e;
/* rgb */ color: rgb(33, 21, 110);
/* oklch */ color: oklch(28.6% 0.143 278.4);
Tailwind
colors: {
  custom: {
    50: '#695599',
    500: '#21156e',
    950: '#000000',
  },
}
SCSS
$custom: #21156e;
$custom-light: #695599;
$custom-dark: #000000;
JSON
{
  "hex": "#21156e",
  "rgb": {
    "r": 33,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 248.09,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28585,
    "c": 0.14305,
    "h": 278.4
  },
  "luminance": 0.01985
}

Semantic roles & 50–950 ramp

primary
#21156E
secondary
#96A43A
accent
#EB3DD3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #21156E

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

Preview Lab → · Contrast checker → · Palette generator →

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