#21177E#21177E

#21177E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.7% C 0.161 H 275.5°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#21177E
RGBrgb(33, 23, 126)
HSLhsl(246, 69%, 29%)
HSVhsv(246, 82%, 49%)
CMYKcmyk(73.8%, 81.7%, 0%, 50.6%)
CIE-LABlab(17.65, 38.44, -55.59)
CIE-LCHlch(17.65, 67.58, 304.66°)
OKLaboklab(30.71% 0.0154 -0.1607)
OKLCHoklch(30.71% 0.161 275.5)
XYZxyz(4.6983, 2.4420, 19.9584)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21177E #747E17
analogous
#17417E #21177E #55177E
triadic
#21177E #7E2117 #177E21
tetradic
#21177E #7E1741 #747E17 #177E55
square
#21177E #7E1741 #747E17 #177E55
split-complementary
#21177E #7E5517 #417E17
monochromatic
#07051A #130E4A #21177E #2F20B2 #4535DA

Accessibility & contrast

On white

14.11
#21177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#21177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21177E
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21177E#FFFFFF#000000##FFFFFF
##21177E1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #21177e;
/* rgb */ color: rgb(33, 23, 126);
/* oklch */ color: oklch(30.7% 0.161 275.5);
Tailwind
colors: {
  custom: {
    50: '#6d57a5',
    500: '#21177e',
    950: '#000000',
  },
}
SCSS
$custom: #21177e;
$custom-light: #6d57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21177e",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 245.825,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30706,
    "c": 0.16146,
    "h": 275.5
  },
  "luminance": 0.02442
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21177E

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

Preview Lab → · Contrast checker → · Palette generator →

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