#21168A#21168A

#21168A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.177 H 274.0°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#21168A
RGBrgb(33, 22, 138)
HSLhsl(246, 73%, 31%)
HSVhsv(246, 84%, 54%)
CMYKcmyk(76.1%, 84.1%, 0%, 45.9%)
CIE-LABlab(18.94, 42.81, -61.04)
CIE-LCHlch(18.94, 74.56, 305.04°)
OKLaboklab(32.02% 0.0125 -0.1765)
OKLCHoklch(32.02% 0.177 274)
XYZxyz(5.5000, 2.7316, 24.2772)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21168A #7F8A16
analogous
#16458A #21168A #5B168A
triadic
#21168A #8A2116 #168A21
tetradic
#21168A #8A1645 #7F8A16 #168A5B
square
#21168A #8A1645 #7F8A16 #168A5B
split-complementary
#21168A #8A5B16 #458A16
monochromatic
#080520 #140E55 #21168A #2E1EBF #4A3BE0

Accessibility & contrast

On white

13.58
#21168A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#21168A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21168A
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21168A#FFFFFF#000000##FFFFFF
##21168A1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002988
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #21168a;
/* rgb */ color: rgb(33, 22, 138);
/* oklch */ color: oklch(32.0% 0.177 274.0);
Tailwind
colors: {
  custom: {
    50: '#7057ad',
    500: '#21168a',
    950: '#000000',
  },
}
SCSS
$custom: #21168a;
$custom-light: #7057ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21168a",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 138
  },
  "hsl": {
    "h": 245.69,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32018,
    "c": 0.17698,
    "h": 274
  },
  "luminance": 0.02732
}

Semantic roles & 50–950 ramp

primary
#21168A
secondary
#B2BE3E
accent
#EF39DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #21168A

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

Preview Lab → · Contrast checker → · Palette generator →

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