#21165C#21165C

#21165C is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.7% C 0.118 H 282.1°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#21165C
RGBrgb(33, 22, 92)
HSLhsl(249, 61%, 22%)
HSVhsv(249, 76%, 36%)
CMYKcmyk(64.1%, 76.1%, 0%, 63.9%)
CIE-LABlab(13.65, 27.45, -40.00)
CIE-LCHlch(13.65, 48.51, 304.47°)
OKLaboklab(26.75% 0.0247 -0.1152)
OKLCHoklch(26.75% 0.118 282.1)
XYZxyz(2.8453, 1.6697, 10.2955)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21165C #515C16
analogous
#162E5C #21165C #44165C
triadic
#21165C #5C2116 #165C21
tetradic
#21165C #5C162E #515C16 #165C44
square
#21165C #5C162E #515C16 #165C44
split-complementary
#21165C #5C4416 #2E5C16
monochromatic
#090619 #0F0A2B #21165C #33228D #442EBF

Accessibility & contrast

On white

15.74
#21165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21165C
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21165C#FFFFFF#000000##FFFFFF
##21165C1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00205B
Tritanopia (blue-blind)
#002937
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #21165c;
/* rgb */ color: rgb(33, 22, 92);
/* oklch */ color: oklch(26.7% 0.118 282.1);
Tailwind
colors: {
  custom: {
    50: '#65548b',
    500: '#21165c',
    950: '#000000',
  },
}
SCSS
$custom: #21165c;
$custom-light: #65548b;
$custom-dark: #000000;
JSON
{
  "hex": "#21165c",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 249.429,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26749,
    "c": 0.11786,
    "h": 282.1
  },
  "luminance": 0.0167
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21165C

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

Preview Lab → · Contrast checker → · Palette generator →

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