#21179F#21179F

#21179F is a dark, highly saturated blue. Relative luminance 0.034; OKLCH L 34.7% C 0.201 H 271.9°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#21179F
RGBrgb(33, 23, 159)
HSLhsl(244, 75%, 36%)
HSVhsv(244, 86%, 62%)
CMYKcmyk(79.2%, 85.5%, 0%, 37.6%)
CIE-LABlab(21.72, 48.87, -69.41)
CIE-LCHlch(21.72, 84.89, 305.15°)
OKLaboklab(34.69% 0.0065 -0.2008)
OKLCHoklch(34.69% 0.201 271.9)
XYZxyz(7.1895, 3.4385, 33.0790)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21179F #959F17
analogous
#17519F #21179F #65179F
triadic
#21179F #9F2117 #179F21
tetradic
#21179F #9F1751 #959F17 #179F65
square
#21179F #9F1751 #959F17 #179F65
split-complementary
#21179F #9F6517 #519F17
monochromatic
#0B0834 #160F6A #21179F #2C1FD4 #574BE5

Accessibility & contrast

On white

12.44
#21179F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#21179F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21179F
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21179F#FFFFFF#000000##FFFFFF
##21179F1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA3
Deuteranopia (green-blind)
#002D9D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #21179f;
/* rgb */ color: rgb(33, 23, 159);
/* oklch */ color: oklch(34.7% 0.201 271.9);
Tailwind
colors: {
  custom: {
    50: '#755abd',
    500: '#21179f',
    950: '#000000',
  },
}
SCSS
$custom: #21179f;
$custom-light: #755abd;
$custom-dark: #000000;
JSON
{
  "hex": "#21179f",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 159
  },
  "hsl": {
    "h": 244.412,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.34692,
    "c": 0.2009,
    "h": 271.9
  },
  "luminance": 0.03439
}

Semantic roles & 50–950 ramp

primary
#21179F
secondary
#BEC74B
accent
#F136E4
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #21179F

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

Preview Lab → · Contrast checker → · Palette generator →

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