#21176B#21176B

#21176B is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.5% C 0.137 H 278.6°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#21176B
RGBrgb(33, 23, 107)
HSLhsl(247, 65%, 25%)
HSVhsv(247, 79%, 42%)
CMYKcmyk(69.2%, 78.5%, 0%, 58%)
CIE-LABlab(15.47, 32.05, -46.93)
CIE-LCHlch(15.47, 56.83, 304.33°)
OKLaboklab(28.53% 0.0204 -0.1355)
OKLCHoklch(28.53% 0.137 278.6)
XYZxyz(3.5866, 1.9974, 14.1036)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21176B #616B17
analogous
#17376B #21176B #4B176B
triadic
#21176B #6B2117 #176B21
tetradic
#21176B #6B1737 #616B17 #176B4B
square
#21176B #6B1737 #616B17 #176B4B
split-complementary
#21176B #6B4B17 #376B17
monochromatic
#080519 #110C39 #21176B #31229D #402DD0

Accessibility & contrast

On white

15.00
#21176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21176B
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21176B#FFFFFF#000000##FFFFFF
##21176B1.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002369
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #21176b;
/* rgb */ color: rgb(33, 23, 107);
/* oklch */ color: oklch(28.5% 0.137 278.6);
Tailwind
colors: {
  custom: {
    50: '#685696',
    500: '#21176b',
    950: '#000000',
  },
}
SCSS
$custom: #21176b;
$custom-light: #685696;
$custom-dark: #000000;
JSON
{
  "hex": "#21176b",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 247.143,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.2853,
    "c": 0.13705,
    "h": 278.6
  },
  "luminance": 0.01998
}

Semantic roles & 50–950 ramp

primary
#21176B
secondary
#95A13D
accent
#E840D4
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #21176B

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

Preview Lab → · Contrast checker → · Palette generator →

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