#21175E#21175E

#21175E is a dark, moderate blue. Relative luminance 0.017; OKLCH L 27.1% C 0.119 H 281.3°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#21175E
RGBrgb(33, 23, 94)
HSLhsl(248, 61%, 23%)
HSVhsv(248, 76%, 37%)
CMYKcmyk(64.9%, 75.5%, 0%, 63.1%)
CIE-LABlab(14.08, 27.52, -40.62)
CIE-LCHlch(14.08, 49.07, 304.12°)
OKLaboklab(27.12% 0.0234 -0.1171)
OKLCHoklch(27.12% 0.119 281.3)
XYZxyz(2.9533, 1.7441, 10.7685)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21175E #545E17
analogous
#17305E #21175E #44175E
triadic
#21175E #5E2117 #175E21
tetradic
#21175E #5E1730 #545E17 #175E44
square
#21175E #5E1730 #545E17 #175E44
split-complementary
#21175E #5E4417 #305E17
monochromatic
#090619 #100B2D #21175E #32238F #442FC0

Accessibility & contrast

On white

15.57
#21175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21175E
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21175E#FFFFFF#000000##FFFFFF
##21175E1.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00215D
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #21175e;
/* rgb */ color: rgb(33, 23, 94);
/* oklch */ color: oklch(27.1% 0.119 281.3);
Tailwind
colors: {
  custom: {
    50: '#65558c',
    500: '#21175e',
    950: '#000000',
  },
}
SCSS
$custom: #21175e;
$custom-light: #65558c;
$custom-dark: #000000;
JSON
{
  "hex": "#21175e",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 248.451,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27122,
    "c": 0.1194,
    "h": 281.3
  },
  "luminance": 0.01744
}

Semantic roles & 50–950 ramp

primary
#21175E
secondary
#88953C
accent
#E444CD
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #21175E

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

Preview Lab → · Contrast checker → · Palette generator →

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