#21117C#21117C

#21117C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.164 H 276.5°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#21117C
RGBrgb(33, 17, 124)
HSLhsl(249, 76%, 28%)
HSVhsv(249, 86%, 49%)
CMYKcmyk(73.4%, 86.3%, 0%, 51.4%)
CIE-LABlab(16.40, 40.75, -56.39)
CIE-LCHlch(16.40, 69.57, 305.86°)
OKLaboklab(29.77% 0.0185 -0.1629)
OKLCHoklch(29.77% 0.164 276.5)
XYZxyz(4.4646, 2.1790, 19.2502)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21117C #6C7C11
analogous
#11367C #21117C #56117C
triadic
#21117C #7C2111 #117C21
tetradic
#21117C #7C1136 #6C7C11 #117C56
square
#21117C #7C1136 #6C7C11 #117C56
split-complementary
#21117C #7C5611 #367C11
monochromatic
#07041B #130A46 #21117C #2F18B2 #4226E1

Accessibility & contrast

On white

14.63
#21117C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#21117C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21117C
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21117C#FFFFFF#000000##FFFFFF
##21117C1.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7F
Deuteranopia (green-blind)
#00247A
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #21117c;
/* rgb */ color: rgb(33, 17, 124);
/* oklch */ color: oklch(29.8% 0.164 276.5);
Tailwind
colors: {
  custom: {
    50: '#6d54a3',
    500: '#21117c',
    950: '#000000',
  },
}
SCSS
$custom: #21117c;
$custom-light: #6d54a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21117c",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 124
  },
  "hsl": {
    "h": 248.972,
    "s": 75.887,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29766,
    "c": 0.16399,
    "h": 276.5
  },
  "luminance": 0.02179
}

Semantic roles & 50–950 ramp

primary
#21117C
secondary
#A0B237
accent
#F235D6
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21117C

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

Preview Lab → · Contrast checker → · Palette generator →

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