#21176F#21176F

#21176F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.142 H 277.8°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#21176F
RGBrgb(33, 23, 111)
HSLhsl(247, 66%, 26%)
HSVhsv(247, 79%, 44%)
CMYKcmyk(70.3%, 79.3%, 0%, 56.5%)
CIE-LABlab(15.92, 33.41, -48.80)
CIE-LCHlch(15.92, 59.15, 304.40°)
OKLaboklab(28.98% 0.0194 -0.141)
OKLCHoklch(28.98% 0.142 277.8)
XYZxyz(3.8019, 2.0835, 15.2376)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21176F #656F17
analogous
#17396F #21176F #4D176F
triadic
#21176F #6F2117 #176F21
tetradic
#21176F #6F1739 #656F17 #176F4D
square
#21176F #6F1739 #656F17 #176F4D
split-complementary
#21176F #6F4D17 #396F17
monochromatic
#080519 #120C3C #21176F #3022A2 #402DD3

Accessibility & contrast

On white

14.82
#21176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#21176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21176F
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21176F#FFFFFF#000000##FFFFFF
##21176F1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00246D
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #21176f;
/* rgb */ color: rgb(33, 23, 111);
/* oklch */ color: oklch(29.0% 0.142 277.8);
Tailwind
colors: {
  custom: {
    50: '#695699',
    500: '#21176f',
    950: '#000000',
  },
}
SCSS
$custom: #21176f;
$custom-light: #695699;
$custom-dark: #000000;
JSON
{
  "hex": "#21176f",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 246.818,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28978,
    "c": 0.14231,
    "h": 277.8
  },
  "luminance": 0.02084
}

Semantic roles & 50–950 ramp

primary
#21176F
secondary
#99A53D
accent
#E93FD5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #21176F

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

Preview Lab → · Contrast checker → · Palette generator →

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