#21165A#21165A

#21165A is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.5% C 0.115 H 282.6°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#21165A
RGBrgb(33, 22, 90)
HSLhsl(250, 61%, 22%)
HSVhsv(250, 76%, 35%)
CMYKcmyk(63.3%, 75.6%, 0%, 64.7%)
CIE-LABlab(13.44, 26.76, -38.99)
CIE-LCHlch(13.44, 47.29, 304.46°)
OKLaboklab(26.54% 0.0251 -0.1123)
OKLCHoklch(26.54% 0.115 282.6)
XYZxyz(2.7590, 1.6352, 9.8411)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21165A #4F5A16
analogous
#162D5A #21165A #43165A
triadic
#21165A #5A2116 #165A21
tetradic
#21165A #5A162D #4F5A16 #165A43
square
#21165A #5A162D #4F5A16 #165A43
split-complementary
#21165A #5A4316 #2D5A16
monochromatic
#090619 #0F0A29 #21165A #33228B #452EBC

Accessibility & contrast

On white

15.83
#21165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21165A
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21165A#FFFFFF#000000##FFFFFF
##21165A1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002059
Tritanopia (blue-blind)
#012836
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #21165a;
/* rgb */ color: rgb(33, 22, 90);
/* oklch */ color: oklch(26.5% 0.115 282.6);
Tailwind
colors: {
  custom: {
    50: '#645489',
    500: '#21165a',
    950: '#000000',
  },
}
SCSS
$custom: #21165a;
$custom-light: #645489;
$custom-dark: #000000;
JSON
{
  "hex": "#21165a",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 249.706,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26539,
    "c": 0.11508,
    "h": 282.6
  },
  "luminance": 0.01635
}

Semantic roles & 50–950 ramp

primary
#21165A
secondary
#83913B
accent
#E444CA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #21165A

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

Preview Lab → · Contrast checker → · Palette generator →

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