#21167A#21167A

#21167A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.157 H 276.2°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#21167A
RGBrgb(33, 22, 122)
HSLhsl(247, 69%, 28%)
HSVhsv(247, 82%, 48%)
CMYKcmyk(73%, 82%, 0%, 52.2%)
CIE-LABlab(17.00, 37.65, -54.12)
CIE-LCHlch(17.00, 65.93, 304.83°)
OKLaboklab(30.11% 0.017 -0.1564)
OKLCHoklch(30.11% 0.157 276.2)
XYZxyz(4.4258, 2.3019, 18.6196)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21167A #6F7A16
analogous
#163D7A #21167A #53167A
triadic
#21167A #7A2116 #167A21
tetradic
#21167A #7A163D #6F7A16 #167A53
square
#21167A #7A163D #6F7A16 #167A53
split-complementary
#21167A #7A5316 #3D7A16
monochromatic
#07051A #130D46 #21167A #2F1FAE #4331DA

Accessibility & contrast

On white

14.38
#21167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#21167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21167A
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21167A#FFFFFF#000000##FFFFFF
##21167A1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21167a;
/* rgb */ color: rgb(33, 22, 122);
/* oklch */ color: oklch(30.1% 0.157 276.2);
Tailwind
colors: {
  custom: {
    50: '#6c56a2',
    500: '#21167a',
    950: '#000000',
  },
}
SCSS
$custom: #21167a;
$custom-light: #6c56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21167a",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 246.6,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30109,
    "c": 0.15736,
    "h": 276.2
  },
  "luminance": 0.02302
}

Semantic roles & 50–950 ramp

primary
#21167A
secondary
#A3AF3D
accent
#EC3CD9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21167A

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

Preview Lab → · Contrast checker → · Palette generator →

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