#21165D#21165D

#21165D is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.9% C 0.119 H 281.8°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#21165D
RGBrgb(33, 22, 93)
HSLhsl(249, 62%, 23%)
HSVhsv(249, 76%, 36%)
CMYKcmyk(64.5%, 76.3%, 0%, 63.5%)
CIE-LABlab(13.75, 27.80, -40.50)
CIE-LCHlch(13.75, 49.12, 304.47°)
OKLaboklab(26.86% 0.0245 -0.1167)
OKLCHoklch(26.86% 0.119 281.8)
XYZxyz(2.8893, 1.6873, 10.5272)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21165D #525D16
analogous
#162E5D #21165D #45165D
triadic
#21165D #5D2116 #165D21
tetradic
#21165D #5D162E #525D16 #165D45
square
#21165D #5D162E #525D16 #165D45
split-complementary
#21165D #5D4516 #2E5D16
monochromatic
#090619 #0F0A2C #21165D #33228E #442DC0

Accessibility & contrast

On white

15.70
#21165D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21165D
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21165D#FFFFFF#000000##FFFFFF
##21165D1.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00215C
Tritanopia (blue-blind)
#002938
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #21165d;
/* rgb */ color: rgb(33, 22, 93);
/* oklch */ color: oklch(26.9% 0.119 281.8);
Tailwind
colors: {
  custom: {
    50: '#65548c',
    500: '#21165d',
    950: '#000000',
  },
}
SCSS
$custom: #21165d;
$custom-light: #65548c;
$custom-dark: #000000;
JSON
{
  "hex": "#21165d",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 249.296,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26855,
    "c": 0.11925,
    "h": 281.8
  },
  "luminance": 0.01687
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21165D

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

Preview Lab → · Contrast checker → · Palette generator →

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