#21167E#21167E

#21167E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.162 H 275.6°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#21167E
RGBrgb(33, 22, 126)
HSLhsl(246, 70%, 29%)
HSVhsv(246, 83%, 49%)
CMYKcmyk(73.8%, 82.5%, 0%, 50.6%)
CIE-LABlab(17.47, 38.96, -55.88)
CIE-LCHlch(17.47, 68.12, 304.88°)
OKLaboklab(30.58% 0.0159 -0.1616)
OKLCHoklch(30.58% 0.162 275.6)
XYZxyz(4.6788, 2.4031, 19.9519)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21167E #737E16
analogous
#163F7E #21167E #55167E
triadic
#21167E #7E2116 #167E21
tetradic
#21167E #7E163F #737E16 #167E55
square
#21167E #7E163F #737E16 #167E55
split-complementary
#21167E #7E5516 #3F7E16
monochromatic
#07051A #130D4A #21167E #2F1FB2 #4533DB

Accessibility & contrast

On white

14.18
#21167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21167E
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21167E#FFFFFF#000000##FFFFFF
##21167E1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21167e;
/* rgb */ color: rgb(33, 22, 126);
/* oklch */ color: oklch(30.6% 0.162 275.6);
Tailwind
colors: {
  custom: {
    50: '#6d56a5',
    500: '#21167e',
    950: '#000000',
  },
}
SCSS
$custom: #21167e;
$custom-light: #6d56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21167e",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 246.346,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3058,
    "c": 0.16235,
    "h": 275.6
  },
  "luminance": 0.02404
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21167E

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

Preview Lab → · Contrast checker → · Palette generator →

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