#21117F#21117F

#21117F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.168 H 276.0°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#21117F
RGBrgb(33, 17, 127)
HSLhsl(249, 76%, 28%)
HSVhsv(249, 87%, 50%)
CMYKcmyk(74%, 86.6%, 0%, 50.2%)
CIE-LABlab(16.78, 41.68, -57.68)
CIE-LCHlch(16.78, 71.16, 305.86°)
OKLaboklab(30.14% 0.0175 -0.1667)
OKLCHoklch(30.14% 0.168 276)
XYZxyz(4.6572, 2.2561, 20.2646)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21117F #6F7F11
analogous
#11387F #21117F #58117F
triadic
#21117F #7F2111 #117F21
tetradic
#21117F #7F1138 #6F7F11 #117F58
square
#21117F #7F1138 #6F7F11 #117F58
split-complementary
#21117F #7F5811 #387F11
monochromatic
#07041B #130A49 #21117F #2F18B5 #4328E2

Accessibility & contrast

On white

14.47
#21117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#21117F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21117F
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21117F#FFFFFF#000000##FFFFFF
##21117F1.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #21117f;
/* rgb */ color: rgb(33, 17, 127);
/* oklch */ color: oklch(30.1% 0.168 276.0);
Tailwind
colors: {
  custom: {
    50: '#6d54a5',
    500: '#21117f',
    950: '#000000',
  },
}
SCSS
$custom: #21117f;
$custom-light: #6d54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21117f",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 248.727,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30135,
    "c": 0.1676,
    "h": 276
  },
  "luminance": 0.02257
}

Semantic roles & 50–950 ramp

primary
#21117F
secondary
#A3B537
accent
#F335D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21117F

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

Preview Lab → · Contrast checker → · Palette generator →

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