#21178F#21178F

#21178F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.182 H 273.4°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#21178F
RGBrgb(33, 23, 143)
HSLhsl(245, 72%, 33%)
HSVhsv(245, 84%, 56%)
CMYKcmyk(76.9%, 83.9%, 0%, 43.9%)
CIE-LABlab(19.72, 43.92, -62.87)
CIE-LCHlch(19.72, 76.69, 304.93°)
OKLaboklab(32.74% 0.0108 -0.1819)
OKLCHoklch(32.74% 0.182 273.4)
XYZxyz(5.8899, 2.9187, 26.2342)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21178F #858F17
analogous
#17498F #21178F #5D178F
triadic
#21178F #8F2117 #178F21
tetradic
#21178F #8F1749 #858F17 #178F5D
square
#21178F #8F1749 #858F17 #178F5D
split-complementary
#21178F #8F5D17 #498F17
monochromatic
#090626 #150F5A #21178F #2D1FC4 #4D40E0

Accessibility & contrast

On white

13.26
#21178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#21178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21178F
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21178F#FFFFFF#000000##FFFFFF
##21178F1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002A8D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #21178f;
/* rgb */ color: rgb(33, 23, 143);
/* oklch */ color: oklch(32.7% 0.182 273.4);
Tailwind
colors: {
  custom: {
    50: '#7158b1',
    500: '#21178f',
    950: '#000000',
  },
}
SCSS
$custom: #21178f;
$custom-light: #7158b1;
$custom-dark: #000000;
JSON
{
  "hex": "#21178f",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 245,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32735,
    "c": 0.18218,
    "h": 273.4
  },
  "luminance": 0.02919
}

Semantic roles & 50–950 ramp

primary
#21178F
secondary
#B6C141
accent
#EF39E0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #21178F

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

Preview Lab → · Contrast checker → · Palette generator →

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