#21177B#21177B

#21177B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.158 H 275.9°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#21177B
RGBrgb(33, 23, 123)
HSLhsl(246, 68%, 29%)
HSVhsv(246, 81%, 48%)
CMYKcmyk(73.2%, 81.3%, 0%, 51.8%)
CIE-LABlab(17.30, 37.45, -54.26)
CIE-LCHlch(17.30, 65.93, 304.61°)
OKLaboklab(30.35% 0.0162 -0.1569)
OKLCHoklch(30.35% 0.158 275.9)
XYZxyz(4.5076, 2.3658, 18.9541)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21177B #717B17
analogous
#173F7B #21177B #53177B
triadic
#21177B #7B2117 #177B21
tetradic
#21177B #7B173F #717B17 #177B53
square
#21177B #7B173F #717B17 #177B53
split-complementary
#21177B #7B5317 #3F7B17
monochromatic
#07051A #130D47 #21177B #2F21AF #4433D9

Accessibility & contrast

On white

14.25
#21177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#21177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21177B
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21177B#FFFFFF#000000##FFFFFF
##21177B1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #21177b;
/* rgb */ color: rgb(33, 23, 123);
/* oklch */ color: oklch(30.4% 0.158 275.9);
Tailwind
colors: {
  custom: {
    50: '#6c57a2',
    500: '#21177b',
    950: '#000000',
  },
}
SCSS
$custom: #21177b;
$custom-light: #6c57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21177b",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 246,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30355,
    "c": 0.1577,
    "h": 275.9
  },
  "luminance": 0.02366
}

Semantic roles & 50–950 ramp

primary
#21177B
secondary
#A5B03E
accent
#EB3CDA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21177B

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

Preview Lab → · Contrast checker → · Palette generator →

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