#21178C#21178C

#21178C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.179 H 273.7°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#21178C
RGBrgb(33, 23, 140)
HSLhsl(245, 72%, 32%)
HSVhsv(245, 84%, 55%)
CMYKcmyk(76.4%, 83.6%, 0%, 45.1%)
CIE-LABlab(19.35, 42.96, -61.61)
CIE-LCHlch(19.35, 75.12, 304.89°)
OKLaboklab(32.37% 0.0116 -0.1782)
OKLCHoklch(32.37% 0.179 273.7)
XYZxyz(5.6656, 2.8290, 25.0533)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21178C #828C17
analogous
#17488C #21178C #5C178C
triadic
#21178C #8C2117 #178C21
tetradic
#21178C #8C1748 #828C17 #178C5C
square
#21178C #8C1748 #828C17 #178C5C
split-complementary
#21178C #8C5C17 #488C17
monochromatic
#080623 #150E57 #21178C #2D20C1 #4C3EDF

Accessibility & contrast

On white

13.41
#21178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#21178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21178C
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21178C#FFFFFF#000000##FFFFFF
##21178C1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00298A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21178c;
/* rgb */ color: rgb(33, 23, 140);
/* oklch */ color: oklch(32.4% 0.179 273.7);
Tailwind
colors: {
  custom: {
    50: '#7058af',
    500: '#21178c',
    950: '#000000',
  },
}
SCSS
$custom: #21178c;
$custom-light: #7058af;
$custom-dark: #000000;
JSON
{
  "hex": "#21178c",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 245.128,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32373,
    "c": 0.17859,
    "h": 273.7
  },
  "luminance": 0.0283
}

Semantic roles & 50–950 ramp

primary
#21178C
secondary
#B4BF3F
accent
#EF39DF
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #21178C

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

Preview Lab → · Contrast checker → · Palette generator →

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