#21187B#21187B

#21187B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.157 H 275.8°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#21187B
RGBrgb(33, 24, 123)
HSLhsl(245, 67%, 29%)
HSVhsv(245, 80%, 48%)
CMYKcmyk(73.2%, 80.5%, 0%, 51.8%)
CIE-LABlab(17.49, 36.90, -53.95)
CIE-LCHlch(17.49, 65.36, 304.38°)
OKLaboklab(30.49% 0.0158 -0.156)
OKLCHoklch(30.49% 0.157 275.8)
XYZxyz(4.5278, 2.4062, 18.9609)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21187B #727B18
analogous
#18417B #21187B #53187B
triadic
#21187B #7B2118 #187B21
tetradic
#21187B #7B1841 #727B18 #187B53
square
#21187B #7B1841 #727B18 #187B53
split-complementary
#21187B #7B5318 #417B18
monochromatic
#07051A #130E48 #21187B #2F22AE #4436D8

Accessibility & contrast

On white

14.18
#21187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#21187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21187B
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21187B#FFFFFF#000000##FFFFFF
##21187B1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #21187b;
/* rgb */ color: rgb(33, 24, 123);
/* oklch */ color: oklch(30.5% 0.157 275.8);
Tailwind
colors: {
  custom: {
    50: '#6c57a2',
    500: '#21187b',
    950: '#000000',
  },
}
SCSS
$custom: #21187b;
$custom-light: #6c57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21187b",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 245.455,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30487,
    "c": 0.15675,
    "h": 275.8
  },
  "luminance": 0.02407
}

Semantic roles & 50–950 ramp

primary
#21187B
secondary
#A5B03F
accent
#EA3EDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21187B

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

Preview Lab → · Contrast checker → · Palette generator →

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