#21169F#21169F

#21169F is a dark, highly saturated blue. Relative luminance 0.034; OKLCH L 34.6% C 0.202 H 271.9°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#21169F
RGBrgb(33, 22, 159)
HSLhsl(245, 76%, 35%)
HSVhsv(245, 86%, 62%)
CMYKcmyk(79.2%, 86.2%, 0%, 37.6%)
CIE-LABlab(21.58, 49.29, -69.65)
CIE-LCHlch(21.58, 85.33, 305.29°)
OKLaboklab(34.59% 0.0067 -0.2015)
OKLCHoklch(34.59% 0.202 271.9)
XYZxyz(7.1700, 3.3996, 33.0725)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21169F #949F16
analogous
#164F9F #21169F #66169F
triadic
#21169F #9F2116 #169F21
tetradic
#21169F #9F164F #949F16 #169F66
square
#21169F #9F164F #949F16 #169F66
split-complementary
#21169F #9F6616 #4F9F16
monochromatic
#0B0733 #160F69 #21169F #2C1DD5 #564AE6

Accessibility & contrast

On white

12.50
#21169F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#21169F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21169F
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21169F#FFFFFF#000000##FFFFFF
##21169F1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA3
Deuteranopia (green-blind)
#002D9D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #21169f;
/* rgb */ color: rgb(33, 22, 159);
/* oklch */ color: oklch(34.6% 0.202 271.9);
Tailwind
colors: {
  custom: {
    50: '#7559bd',
    500: '#21169f',
    950: '#000000',
  },
}
SCSS
$custom: #21169f;
$custom-light: #7559bd;
$custom-dark: #000000;
JSON
{
  "hex": "#21169f",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 159
  },
  "hsl": {
    "h": 244.818,
    "s": 75.691,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34594,
    "c": 0.20157,
    "h": 271.9
  },
  "luminance": 0.034
}

Semantic roles & 50–950 ramp

primary
#21169F
secondary
#BDC74A
accent
#F236E3
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #21169F

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

Preview Lab → · Contrast checker → · Palette generator →

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