#21176A#21176A

#21176A is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.4% C 0.136 H 278.8°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#21176A
RGBrgb(33, 23, 106)
HSLhsl(247, 64%, 25%)
HSVhsv(247, 78%, 42%)
CMYKcmyk(68.9%, 78.3%, 0%, 58.4%)
CIE-LABlab(15.36, 31.70, -46.46)
CIE-LCHlch(15.36, 56.24, 304.31°)
OKLaboklab(28.42% 0.0207 -0.1341)
OKLCHoklch(28.42% 0.136 278.8)
XYZxyz(3.5343, 1.9764, 13.8281)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21176A #606A17
analogous
#17366A #21176A #4A176A
triadic
#21176A #6A2117 #176A21
tetradic
#21176A #6A1736 #606A17 #176A4A
square
#21176A #6A1736 #606A17 #176A4A
split-complementary
#21176A #6A4A17 #366A17
monochromatic
#080519 #110C38 #21176A #31229C #402DCF

Accessibility & contrast

On white

15.05
#21176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21176A
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21176A#FFFFFF#000000##FFFFFF
##21176A1.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002368
Tritanopia (blue-blind)
#002F3F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #21176a;
/* rgb */ color: rgb(33, 23, 106);
/* oklch */ color: oklch(28.4% 0.136 278.8);
Tailwind
colors: {
  custom: {
    50: '#685696',
    500: '#21176a',
    950: '#000000',
  },
}
SCSS
$custom: #21176a;
$custom-light: #685696;
$custom-dark: #000000;
JSON
{
  "hex": "#21176a",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 247.229,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28419,
    "c": 0.13572,
    "h": 278.8
  },
  "luminance": 0.01977
}

Semantic roles & 50–950 ramp

primary
#21176A
secondary
#94A03D
accent
#E740D3
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #21176A

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

Preview Lab → · Contrast checker → · Palette generator →

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