#21167C#21167C

#21167C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.160 H 275.9°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#21167C
RGBrgb(33, 22, 124)
HSLhsl(246, 70%, 29%)
HSVhsv(246, 82%, 49%)
CMYKcmyk(73.4%, 82.3%, 0%, 51.4%)
CIE-LABlab(17.24, 38.31, -55.00)
CIE-LCHlch(17.24, 67.03, 304.85°)
OKLaboklab(30.34% 0.0164 -0.159)
OKLCHoklch(30.34% 0.16 275.9)
XYZxyz(4.5510, 2.3520, 19.2790)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21167C #717C16
analogous
#163E7C #21167C #54167C
triadic
#21167C #7C2116 #167C21
tetradic
#21167C #7C163E #717C16 #167C54
square
#21167C #7C163E #717C16 #167C54
split-complementary
#21167C #7C5416 #3E7C16
monochromatic
#07051A #130D48 #21167C #2F1FB0 #4432DB

Accessibility & contrast

On white

14.28
#21167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21167C
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21167C#FFFFFF#000000##FFFFFF
##21167C1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00267A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #21167c;
/* rgb */ color: rgb(33, 22, 124);
/* oklch */ color: oklch(30.3% 0.160 275.9);
Tailwind
colors: {
  custom: {
    50: '#6c56a3',
    500: '#21167c',
    950: '#000000',
  },
}
SCSS
$custom: #21167c;
$custom-light: #6c56a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21167c",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 246.471,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30344,
    "c": 0.15986,
    "h": 275.9
  },
  "luminance": 0.02352
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21167C

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

Preview Lab → · Contrast checker → · Palette generator →

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