#21176E#21176E

#21176E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.9% C 0.141 H 278.0°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#21176E
RGBrgb(33, 23, 110)
HSLhsl(247, 65%, 26%)
HSVhsv(247, 79%, 43%)
CMYKcmyk(70%, 79.1%, 0%, 56.9%)
CIE-LABlab(15.81, 33.07, -48.34)
CIE-LCHlch(15.81, 58.57, 304.38°)
OKLaboklab(28.87% 0.0197 -0.1396)
OKLCHoklch(28.87% 0.141 278)
XYZxyz(3.7472, 2.0616, 14.9493)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21176E #646E17
analogous
#17386E #21176E #4C176E
triadic
#21176E #6E2117 #176E21
tetradic
#21176E #6E1738 #646E17 #176E4C
square
#21176E #6E1738 #646E17 #176E4C
split-complementary
#21176E #6E4C17 #386E17
monochromatic
#080519 #120C3B #21176E #3022A1 #402CD3

Accessibility & contrast

On white

14.87
#21176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21176E
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21176E#FFFFFF#000000##FFFFFF
##21176E1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21176e;
/* rgb */ color: rgb(33, 23, 110);
/* oklch */ color: oklch(28.9% 0.141 278.0);
Tailwind
colors: {
  custom: {
    50: '#695699',
    500: '#21176e',
    950: '#000000',
  },
}
SCSS
$custom: #21176e;
$custom-light: #695699;
$custom-dark: #000000;
JSON
{
  "hex": "#21176e",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 246.897,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28865,
    "c": 0.141,
    "h": 278
  },
  "luminance": 0.02062
}

Semantic roles & 50–950 ramp

primary
#21176E
secondary
#98A43D
accent
#E83FD5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #21176E

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

Preview Lab → · Contrast checker → · Palette generator →

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