#21165E#21165E

#21165E is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.0% C 0.121 H 281.6°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#21165E
RGBrgb(33, 22, 94)
HSLhsl(249, 62%, 23%)
HSVhsv(249, 77%, 37%)
CMYKcmyk(64.9%, 76.6%, 0%, 63.1%)
CIE-LABlab(13.86, 28.15, -40.99)
CIE-LCHlch(13.86, 49.73, 304.48°)
OKLaboklab(26.96% 0.0242 -0.1182)
OKLCHoklch(26.96% 0.121 281.6)
XYZxyz(2.9339, 1.7051, 10.7620)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21165E #535E16
analogous
#162F5E #21165E #45165E
triadic
#21165E #5E2116 #165E21
tetradic
#21165E #5E162F #535E16 #165E45
square
#21165E #5E162F #535E16 #165E45
split-complementary
#21165E #5E4516 #2F5E16
monochromatic
#090619 #100A2C #21165E #322290 #442DC1

Accessibility & contrast

On white

15.66
#21165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#21165E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21165E
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21165E#FFFFFF#000000##FFFFFF
##21165E1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00215D
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #21165e;
/* rgb */ color: rgb(33, 22, 94);
/* oklch */ color: oklch(27.0% 0.121 281.6);
Tailwind
colors: {
  custom: {
    50: '#65548c',
    500: '#21165e',
    950: '#000000',
  },
}
SCSS
$custom: #21165e;
$custom-light: #65548c;
$custom-dark: #000000;
JSON
{
  "hex": "#21165e",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 249.167,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.26961,
    "c": 0.12063,
    "h": 281.6
  },
  "luminance": 0.01705
}

Semantic roles & 50–950 ramp

primary
#21165E
secondary
#87953B
accent
#E543CC
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #21165E

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

Preview Lab → · Contrast checker → · Palette generator →

#21165E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva