#21175C#21175C

#21175C is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.9% C 0.117 H 281.8°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#21175C
RGBrgb(33, 23, 92)
HSLhsl(249, 60%, 23%)
HSVhsv(249, 75%, 36%)
CMYKcmyk(64.1%, 75%, 0%, 63.9%)
CIE-LABlab(13.88, 26.82, -39.62)
CIE-LCHlch(13.88, 47.85, 304.10°)
OKLaboklab(26.91% 0.0238 -0.1142)
OKLCHoklch(26.91% 0.117 281.8)
XYZxyz(2.8648, 1.7086, 10.3020)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21175C #525C17
analogous
#172F5C #21175C #44175C
triadic
#21175C #5C2117 #175C21
tetradic
#21175C #5C172F #525C17 #175C44
square
#21175C #5C172F #525C17 #175C44
split-complementary
#21175C #5C4417 #2F5C17
monochromatic
#090618 #0F0B2B #21175C #33238D #442FBE

Accessibility & contrast

On white

15.65
#21175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21175C
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21175C#FFFFFF#000000##FFFFFF
##21175C1.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21175c;
/* rgb */ color: rgb(33, 23, 92);
/* oklch */ color: oklch(26.9% 0.117 281.8);
Tailwind
colors: {
  custom: {
    50: '#64558b',
    500: '#21175c',
    950: '#000000',
  },
}
SCSS
$custom: #21175c;
$custom-light: #64558b;
$custom-dark: #000000;
JSON
{
  "hex": "#21175c",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 248.696,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26912,
    "c": 0.11661,
    "h": 281.8
  },
  "luminance": 0.01709
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21175C

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

Preview Lab → · Contrast checker → · Palette generator →

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