#21176D#21176D

#21176D is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.8% C 0.140 H 278.2°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#21176D
RGBrgb(33, 23, 109)
HSLhsl(247, 65%, 26%)
HSVhsv(247, 79%, 43%)
CMYKcmyk(69.7%, 78.9%, 0%, 57.3%)
CIE-LABlab(15.70, 32.73, -47.87)
CIE-LCHlch(15.70, 57.99, 304.36°)
OKLaboklab(28.75% 0.0199 -0.1383)
OKLCHoklch(28.75% 0.14 278.2)
XYZxyz(3.6930, 2.0399, 14.6642)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21176D #636D17
analogous
#17386D #21176D #4C176D
triadic
#21176D #6D2117 #176D21
tetradic
#21176D #6D1738 #636D17 #176D4C
square
#21176D #6D1738 #636D17 #176D4C
split-complementary
#21176D #6D4C17 #386D17
monochromatic
#080519 #120C3A #21176D #3022A0 #402CD2

Accessibility & contrast

On white

14.91
#21176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#21176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21176D
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21176D#FFFFFF#000000##FFFFFF
##21176D1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6F
Deuteranopia (green-blind)
#00246B
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #21176d;
/* rgb */ color: rgb(33, 23, 109);
/* oklch */ color: oklch(28.8% 0.140 278.2);
Tailwind
colors: {
  custom: {
    50: '#685698',
    500: '#21176d',
    950: '#000000',
  },
}
SCSS
$custom: #21176d;
$custom-light: #685698;
$custom-dark: #000000;
JSON
{
  "hex": "#21176d",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 246.977,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28753,
    "c": 0.13968,
    "h": 278.2
  },
  "luminance": 0.0204
}

Semantic roles & 50–950 ramp

primary
#21176D
secondary
#97A33D
accent
#E840D5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #21176D

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

Preview Lab → · Contrast checker → · Palette generator →

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