#21175B#21175B

#21175B is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.8% C 0.115 H 282.0°. Best body text is #FFFFFF at 15.69:1 contrast (WCAG AA passes).

Color values

HEX#21175B
RGBrgb(33, 23, 91)
HSLhsl(249, 60%, 22%)
HSVhsv(249, 75%, 36%)
CMYKcmyk(63.7%, 74.7%, 0%, 64.3%)
CIE-LABlab(13.78, 26.47, -39.12)
CIE-LCHlch(13.78, 47.23, 304.08°)
OKLaboklab(26.81% 0.024 -0.1127)
OKLCHoklch(26.81% 0.115 282)
XYZxyz(2.8213, 1.6913, 10.0733)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21175B #515B17
analogous
#172F5B #21175B #43175B
triadic
#21175B #5B2117 #175B21
tetradic
#21175B #5B172F #515B17 #175B43
square
#21175B #5B172F #515B17 #175B43
split-complementary
#21175B #5B4317 #2F5B17
monochromatic
#090618 #0F0B2A #21175B #33238C #4430BD

Accessibility & contrast

On white

15.69
#21175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#21175B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21175B
15.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21175B#FFFFFF#000000##FFFFFF
##21175B1.0015.691.3415.69
#FFFFFF15.691.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21175b;
/* rgb */ color: rgb(33, 23, 91);
/* oklch */ color: oklch(26.8% 0.115 282.0);
Tailwind
colors: {
  custom: {
    50: '#64558a',
    500: '#21175b',
    950: '#000000',
  },
}
SCSS
$custom: #21175b;
$custom-light: #64558a;
$custom-dark: #000000;
JSON
{
  "hex": "#21175b",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 248.824,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26809,
    "c": 0.1152,
    "h": 282
  },
  "luminance": 0.01691
}

Semantic roles & 50–950 ramp

primary
#21175B
secondary
#85923C
accent
#E345CC
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #21175B

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

Preview Lab → · Contrast checker → · Palette generator →

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