#21168F#21168F

#21168F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.183 H 273.5°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#21168F
RGBrgb(33, 22, 143)
HSLhsl(245, 73%, 32%)
HSVhsv(245, 85%, 56%)
CMYKcmyk(76.9%, 84.6%, 0%, 43.9%)
CIE-LABlab(19.56, 44.39, -63.14)
CIE-LCHlch(19.56, 77.18, 305.11°)
OKLaboklab(32.63% 0.0111 -0.1826)
OKLCHoklch(32.63% 0.183 273.5)
XYZxyz(5.8704, 2.8797, 26.2277)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21168F #848F16
analogous
#16478F #21168F #5E168F
triadic
#21168F #8F2116 #168F21
tetradic
#21168F #8F1647 #848F16 #168F5E
square
#21168F #8F1647 #848F16 #168F5E
split-complementary
#21168F #8F5E16 #478F16
monochromatic
#090625 #150E5A #21168F #2D1EC4 #4D3EE1

Accessibility & contrast

On white

13.32
#21168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#21168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21168F
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21168F#FFFFFF#000000##FFFFFF
##21168F1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002A8D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21168f;
/* rgb */ color: rgb(33, 22, 143);
/* oklch */ color: oklch(32.6% 0.183 273.5);
Tailwind
colors: {
  custom: {
    50: '#7158b1',
    500: '#21168f',
    950: '#000000',
  },
}
SCSS
$custom: #21168f;
$custom-light: #7158b1;
$custom-dark: #000000;
JSON
{
  "hex": "#21168f",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 245.455,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32625,
    "c": 0.18295,
    "h": 273.5
  },
  "luminance": 0.0288
}

Semantic roles & 50–950 ramp

primary
#21168F
secondary
#B6C13F
accent
#F038DF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #21168F

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

Preview Lab → · Contrast checker → · Palette generator →

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