#21175D#21175D

#21175D is a dark, moderate blue. Relative luminance 0.017; OKLCH L 27.0% C 0.118 H 281.5°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#21175D
RGBrgb(33, 23, 93)
HSLhsl(249, 60%, 23%)
HSVhsv(249, 75%, 36%)
CMYKcmyk(64.5%, 75.3%, 0%, 63.5%)
CIE-LABlab(13.98, 27.18, -40.12)
CIE-LCHlch(13.98, 48.46, 304.11°)
OKLaboklab(27.02% 0.0236 -0.1156)
OKLCHoklch(27.02% 0.118 281.5)
XYZxyz(2.9088, 1.7262, 10.5337)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21175D #535D17
analogous
#17305D #21175D #44175D
triadic
#21175D #5D2117 #175D21
tetradic
#21175D #5D1730 #535D17 #175D44
square
#21175D #5D1730 #535D17 #175D44
split-complementary
#21175D #5D4417 #305D17
monochromatic
#090619 #100B2C #21175D #32238E #442FBF

Accessibility & contrast

On white

15.61
#21175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#21175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21175D
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21175D#FFFFFF#000000##FFFFFF
##21175D1.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00215C
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #21175d;
/* rgb */ color: rgb(33, 23, 93);
/* oklch */ color: oklch(27.0% 0.118 281.5);
Tailwind
colors: {
  custom: {
    50: '#65558c',
    500: '#21175d',
    950: '#000000',
  },
}
SCSS
$custom: #21175d;
$custom-light: #65558c;
$custom-dark: #000000;
JSON
{
  "hex": "#21175d",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 248.571,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27017,
    "c": 0.11801,
    "h": 281.5
  },
  "luminance": 0.01726
}

Semantic roles & 50–950 ramp

primary
#21175D
secondary
#87943C
accent
#E344CD
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #21175D

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

Preview Lab → · Contrast checker → · Palette generator →

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