#21178A#21178A

#21178A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.176 H 274.0°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#21178A
RGBrgb(33, 23, 138)
HSLhsl(245, 71%, 32%)
HSVhsv(245, 83%, 54%)
CMYKcmyk(76.1%, 83.3%, 0%, 45.9%)
CIE-LABlab(19.10, 42.33, -60.77)
CIE-LCHlch(19.10, 74.06, 304.86°)
OKLaboklab(32.13% 0.0122 -0.1758)
OKLCHoklch(32.13% 0.176 274)
XYZxyz(5.5195, 2.7705, 24.2837)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21178A #808A17
analogous
#17478A #21178A #5B178A
triadic
#21178A #8A2117 #178A21
tetradic
#21178A #8A1747 #808A17 #178A5B
square
#21178A #8A1747 #808A17 #178A5B
split-complementary
#21178A #8A5B17 #478A17
monochromatic
#080621 #140E56 #21178A #2E20BE #4B3DDF

Accessibility & contrast

On white

13.51
#21178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#21178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21178A
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21178A#FFFFFF#000000##FFFFFF
##21178A1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002988
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #21178a;
/* rgb */ color: rgb(33, 23, 138);
/* oklch */ color: oklch(32.1% 0.176 274.0);
Tailwind
colors: {
  custom: {
    50: '#7058ad',
    500: '#21178a',
    950: '#000000',
  },
}
SCSS
$custom: #21178a;
$custom-light: #7058ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21178a",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 245.217,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32132,
    "c": 0.17618,
    "h": 274
  },
  "luminance": 0.02771
}

Semantic roles & 50–950 ramp

primary
#21178A
secondary
#B3BE3F
accent
#EE3ADE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #21178A

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

Preview Lab → · Contrast checker → · Palette generator →

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