#21177C#21177C

#21177C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.159 H 275.8°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#21177C
RGBrgb(33, 23, 124)
HSLhsl(246, 69%, 29%)
HSVhsv(246, 81%, 49%)
CMYKcmyk(73.4%, 81.5%, 0%, 51.4%)
CIE-LABlab(17.42, 37.78, -54.70)
CIE-LCHlch(17.42, 66.48, 304.63°)
OKLaboklab(30.47% 0.016 -0.1582)
OKLCHoklch(30.47% 0.159 275.8)
XYZxyz(4.5705, 2.3909, 19.2855)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21177C #727C17
analogous
#17407C #21177C #54177C
triadic
#21177C #7C2117 #177C21
tetradic
#21177C #7C1740 #727C17 #177C54
square
#21177C #7C1740 #727C17 #177C54
split-complementary
#21177C #7C5417 #407C17
monochromatic
#07051A #130D48 #21177C #2F21B0 #4434D9

Accessibility & contrast

On white

14.21
#21177C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#21177C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21177C
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21177C#FFFFFF#000000##FFFFFF
##21177C1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00267A
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #21177c;
/* rgb */ color: rgb(33, 23, 124);
/* oklch */ color: oklch(30.5% 0.159 275.8);
Tailwind
colors: {
  custom: {
    50: '#6c57a3',
    500: '#21177c',
    950: '#000000',
  },
}
SCSS
$custom: #21177c;
$custom-light: #6c57a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21177c",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 124
  },
  "hsl": {
    "h": 245.941,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30471,
    "c": 0.15895,
    "h": 275.8
  },
  "luminance": 0.02391
}

Semantic roles & 50–950 ramp

primary
#21177C
secondary
#A5B13E
accent
#EC3CDA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21177C

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

Preview Lab → · Contrast checker → · Palette generator →

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