#21176C#21176C

#21176C is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.138 H 278.4°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#21176C
RGBrgb(33, 23, 108)
HSLhsl(247, 65%, 26%)
HSVhsv(247, 79%, 42%)
CMYKcmyk(69.4%, 78.7%, 0%, 57.6%)
CIE-LABlab(15.58, 32.39, -47.40)
CIE-LCHlch(15.58, 57.41, 304.35°)
OKLaboklab(28.64% 0.0202 -0.1369)
OKLCHoklch(28.64% 0.138 278.4)
XYZxyz(3.6395, 2.0185, 14.3823)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21176C #626C17
analogous
#17376C #21176C #4B176C
triadic
#21176C #6C2117 #176C21
tetradic
#21176C #6C1737 #626C17 #176C4B
square
#21176C #6C1737 #626C17 #176C4B
split-complementary
#21176C #6C4B17 #376C17
monochromatic
#080519 #120C3A #21176C #30229E #402CD1

Accessibility & contrast

On white

14.96
#21176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#21176C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21176C
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21176C#FFFFFF#000000##FFFFFF
##21176C1.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00236A
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #21176c;
/* rgb */ color: rgb(33, 23, 108);
/* oklch */ color: oklch(28.6% 0.138 278.4);
Tailwind
colors: {
  custom: {
    50: '#685697',
    500: '#21176c',
    950: '#000000',
  },
}
SCSS
$custom: #21176c;
$custom-light: #685697;
$custom-dark: #000000;
JSON
{
  "hex": "#21176c",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 247.059,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28641,
    "c": 0.13837,
    "h": 278.4
  },
  "luminance": 0.02019
}

Semantic roles & 50–950 ramp

primary
#21176C
secondary
#96A23D
accent
#E840D4
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #21176C

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

Preview Lab → · Contrast checker → · Palette generator →

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