#21178D#21178D

#21178D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.180 H 273.6°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#21178D
RGBrgb(33, 23, 141)
HSLhsl(245, 72%, 32%)
HSVhsv(245, 84%, 55%)
CMYKcmyk(76.6%, 83.7%, 0%, 44.7%)
CIE-LABlab(19.47, 43.28, -62.04)
CIE-LCHlch(19.47, 75.64, 304.90°)
OKLaboklab(32.49% 0.0113 -0.1794)
OKLCHoklch(32.49% 0.18 273.6)
XYZxyz(5.7397, 2.8586, 25.4434)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21178D #838D17
analogous
#17488D #21178D #5C178D
triadic
#21178D #8D2117 #178D21
tetradic
#21178D #8D1748 #838D17 #178D5C
square
#21178D #8D1748 #838D17 #178D5C
split-complementary
#21178D #8D5C17 #488D17
monochromatic
#080624 #150E58 #21178D #2D20C2 #4C3FE0

Accessibility & contrast

On white

13.36
#21178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21178D
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21178D#FFFFFF#000000##FFFFFF
##21178D1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#00298B
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21178d;
/* rgb */ color: rgb(33, 23, 141);
/* oklch */ color: oklch(32.5% 0.180 273.6);
Tailwind
colors: {
  custom: {
    50: '#7058b0',
    500: '#21178d',
    950: '#000000',
  },
}
SCSS
$custom: #21178d;
$custom-light: #7058b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21178d",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 245.085,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32493,
    "c": 0.17979,
    "h": 273.6
  },
  "luminance": 0.02859
}

Semantic roles & 50–950 ramp

primary
#21178D
secondary
#B5C040
accent
#EF39DF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #21178D

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

Preview Lab → · Contrast checker → · Palette generator →

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