#21168B#21168B

#21168B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.178 H 273.9°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#21168B
RGBrgb(33, 22, 139)
HSLhsl(246, 73%, 32%)
HSVhsv(246, 84%, 55%)
CMYKcmyk(76.3%, 84.2%, 0%, 45.5%)
CIE-LABlab(19.06, 43.13, -61.46)
CIE-LCHlch(19.06, 75.09, 305.06°)
OKLaboklab(32.14% 0.0122 -0.1778)
OKLCHoklch(32.14% 0.178 273.9)
XYZxyz(5.5728, 2.7607, 24.6603)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21168B #808B16
analogous
#16468B #21168B #5C168B
triadic
#21168B #8B2116 #168B21
tetradic
#21168B #8B1646 #808B16 #168B5C
square
#21168B #8B1646 #808B16 #168B5C
split-complementary
#21168B #8B5C16 #468B16
monochromatic
#080521 #140E56 #21168B #2E1EC0 #4B3BE0

Accessibility & contrast

On white

13.53
#21168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21168B
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21168B#FFFFFF#000000##FFFFFF
##21168B1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338E
Deuteranopia (green-blind)
#002989
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #21168b;
/* rgb */ color: rgb(33, 22, 139);
/* oklch */ color: oklch(32.1% 0.178 273.9);
Tailwind
colors: {
  custom: {
    50: '#7057ae',
    500: '#21168b',
    950: '#000000',
  },
}
SCSS
$custom: #21168b;
$custom-light: #7057ae;
$custom-dark: #000000;
JSON
{
  "hex": "#21168b",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 245.641,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32139,
    "c": 0.17818,
    "h": 273.9
  },
  "luminance": 0.02761
}

Semantic roles & 50–950 ramp

primary
#21168B
secondary
#B3BF3E
accent
#EF38DE
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #21168B

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

Preview Lab → · Contrast checker → · Palette generator →

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