#21165B#21165B

#21165B is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.6% C 0.116 H 282.3°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#21165B
RGBrgb(33, 22, 91)
HSLhsl(250, 61%, 22%)
HSVhsv(250, 76%, 36%)
CMYKcmyk(63.7%, 75.8%, 0%, 64.3%)
CIE-LABlab(13.55, 27.11, -39.50)
CIE-LCHlch(13.55, 47.90, 304.46°)
OKLaboklab(26.64% 0.0249 -0.1138)
OKLCHoklch(26.64% 0.116 282.3)
XYZxyz(2.8018, 1.6523, 10.0668)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21165B #505B16
analogous
#162E5B #21165B #44165B
triadic
#21165B #5B2116 #165B21
tetradic
#21165B #5B162E #505B16 #165B44
square
#21165B #5B162E #505B16 #165B44
split-complementary
#21165B #5B4416 #2E5B16
monochromatic
#090619 #0F0A2A #21165B #33228C #452EBE

Accessibility & contrast

On white

15.78
#21165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#21165B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21165B
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21165B#FFFFFF#000000##FFFFFF
##21165B1.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00205A
Tritanopia (blue-blind)
#002936
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #21165b;
/* rgb */ color: rgb(33, 22, 91);
/* oklch */ color: oklch(26.6% 0.116 282.3);
Tailwind
colors: {
  custom: {
    50: '#64548a',
    500: '#21165b',
    950: '#000000',
  },
}
SCSS
$custom: #21165b;
$custom-light: #64548a;
$custom-dark: #000000;
JSON
{
  "hex": "#21165b",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 249.565,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26644,
    "c": 0.11647,
    "h": 282.3
  },
  "luminance": 0.01652
}

Semantic roles & 50–950 ramp

primary
#21165B
secondary
#84923B
accent
#E444CB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #21165B

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

Preview Lab → · Contrast checker → · Palette generator →

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