#21177D#21177D

#21177D is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.160 H 275.6°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#21177D
RGBrgb(33, 23, 125)
HSLhsl(246, 69%, 29%)
HSVhsv(246, 82%, 49%)
CMYKcmyk(73.6%, 81.6%, 0%, 51%)
CIE-LABlab(17.54, 38.11, -55.14)
CIE-LCHlch(17.54, 67.03, 304.65°)
OKLaboklab(30.59% 0.0157 -0.1594)
OKLCHoklch(30.59% 0.16 275.6)
XYZxyz(4.6341, 2.4164, 19.6202)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21177D #737D17
analogous
#17407D #21177D #54177D
triadic
#21177D #7D2117 #177D21
tetradic
#21177D #7D1740 #737D17 #177D54
square
#21177D #7D1740 #737D17 #177D54
split-complementary
#21177D #7D5417 #407D17
monochromatic
#07051A #130D49 #21177D #2F21B1 #4535DA

Accessibility & contrast

On white

14.16
#21177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#21177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21177D
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21177D#FFFFFF#000000##FFFFFF
##21177D1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00267B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #21177d;
/* rgb */ color: rgb(33, 23, 125);
/* oklch */ color: oklch(30.6% 0.160 275.6);
Tailwind
colors: {
  custom: {
    50: '#6c57a4',
    500: '#21177d',
    950: '#000000',
  },
}
SCSS
$custom: #21177d;
$custom-light: #6c57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21177d",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 245.882,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30588,
    "c": 0.1602,
    "h": 275.6
  },
  "luminance": 0.02417
}

Semantic roles & 50–950 ramp

primary
#21177D
secondary
#A6B23E
accent
#EC3CDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21177D

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

Preview Lab → · Contrast checker → · Palette generator →

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