#21167B#21167B

#21167B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.159 H 276.0°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#21167B
RGBrgb(33, 22, 123)
HSLhsl(247, 70%, 28%)
HSVhsv(247, 82%, 48%)
CMYKcmyk(73.2%, 82.1%, 0%, 51.8%)
CIE-LABlab(17.12, 37.98, -54.56)
CIE-LCHlch(17.12, 66.48, 304.84°)
OKLaboklab(30.23% 0.0167 -0.1577)
OKLCHoklch(30.23% 0.159 276)
XYZxyz(4.4881, 2.3268, 18.9476)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21167B #707B16
analogous
#163D7B #21167B #53167B
triadic
#21167B #7B2116 #167B21
tetradic
#21167B #7B163D #707B16 #167B53
square
#21167B #7B163D #707B16 #167B53
split-complementary
#21167B #7B5316 #3D7B16
monochromatic
#07051A #130D47 #21167B #2F1FAF #4431DA

Accessibility & contrast

On white

14.33
#21167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#21167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21167B
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21167B#FFFFFF#000000##FFFFFF
##21167B1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #21167b;
/* rgb */ color: rgb(33, 22, 123);
/* oklch */ color: oklch(30.2% 0.159 276.0);
Tailwind
colors: {
  custom: {
    50: '#6c56a2',
    500: '#21167b',
    950: '#000000',
  },
}
SCSS
$custom: #21167b;
$custom-light: #6c56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21167b",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 246.535,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30226,
    "c": 0.15861,
    "h": 276
  },
  "luminance": 0.02327
}

Semantic roles & 50–950 ramp

primary
#21167B
secondary
#A4B03D
accent
#EC3BD9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21167B

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

Preview Lab → · Contrast checker → · Palette generator →

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