#21167D#21167D

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

Color values

HEX#21167D
RGBrgb(33, 22, 125)
HSLhsl(246, 70%, 29%)
HSVhsv(246, 82%, 49%)
CMYKcmyk(73.6%, 82.4%, 0%, 51%)
CIE-LABlab(17.35, 38.63, -55.44)
CIE-LCHlch(17.35, 67.58, 304.87°)
OKLaboklab(30.46% 0.0162 -0.1603)
OKLCHoklch(30.46% 0.161 275.8)
XYZxyz(4.6146, 2.3774, 19.6138)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21167D #727D16
analogous
#163F7D #21167D #55167D
triadic
#21167D #7D2116 #167D21
tetradic
#21167D #7D163F #727D16 #167D55
square
#21167D #7D163F #727D16 #167D55
split-complementary
#21167D #7D5516 #3F7D16
monochromatic
#07051A #130D49 #21167D #2F1FB1 #4432DB

Accessibility & contrast

On white

14.23
#21167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#21167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21167D
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21167D#FFFFFF#000000##FFFFFF
##21167D1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00267B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #21167d;
/* rgb */ color: rgb(33, 22, 125);
/* oklch */ color: oklch(30.5% 0.161 275.8);
Tailwind
colors: {
  custom: {
    50: '#6d56a4',
    500: '#21167d',
    950: '#000000',
  },
}
SCSS
$custom: #21167d;
$custom-light: #6d56a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21167d",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 246.408,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30462,
    "c": 0.1611,
    "h": 275.8
  },
  "luminance": 0.02378
}

Semantic roles & 50–950 ramp

primary
#21167D
secondary
#A5B23D
accent
#ED3BDA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21167D

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

Preview Lab → · Contrast checker → · Palette generator →

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