#21177A#21177A

#21177A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.156 H 276.1°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#21177A
RGBrgb(33, 23, 122)
HSLhsl(246, 68%, 28%)
HSVhsv(246, 81%, 48%)
CMYKcmyk(73%, 81.1%, 0%, 52.2%)
CIE-LABlab(17.18, 37.12, -53.81)
CIE-LCHlch(17.18, 65.37, 304.60°)
OKLaboklab(30.24% 0.0165 -0.1556)
OKLCHoklch(30.24% 0.156 276.1)
XYZxyz(4.4453, 2.3408, 18.6261)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21177A #707A17
analogous
#173E7A #21177A #52177A
triadic
#21177A #7A2117 #177A21
tetradic
#21177A #7A173E #707A17 #177A52
square
#21177A #7A173E #707A17 #177A52
split-complementary
#21177A #7A5217 #3E7A17
monochromatic
#07051A #130D47 #21177A #2F21AD #4433D9

Accessibility & contrast

On white

14.30
#21177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#21177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21177A
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21177A#FFFFFF#000000##FFFFFF
##21177A1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002678
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #21177a;
/* rgb */ color: rgb(33, 23, 122);
/* oklch */ color: oklch(30.2% 0.156 276.1);
Tailwind
colors: {
  custom: {
    50: '#6c57a2',
    500: '#21177a',
    950: '#000000',
  },
}
SCSS
$custom: #21177a;
$custom-light: #6c57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21177a",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 246.061,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30238,
    "c": 0.15643,
    "h": 276.1
  },
  "luminance": 0.02341
}

Semantic roles & 50–950 ramp

primary
#21177A
secondary
#A4AF3E
accent
#EB3DDA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21177A

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

Preview Lab → · Contrast checker → · Palette generator →

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