#21108D#21108D

#21108D is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.8% C 0.185 H 274.1°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#21108D
RGBrgb(33, 16, 141)
HSLhsl(248, 80%, 31%)
HSVhsv(248, 89%, 55%)
CMYKcmyk(76.6%, 88.7%, 0%, 44.7%)
CIE-LABlab(18.44, 46.34, -63.75)
CIE-LCHlch(18.44, 78.81, 306.01°)
OKLaboklab(31.79% 0.0133 -0.1842)
OKLCHoklch(31.79% 0.185 274.1)
XYZxyz(5.6186, 2.6164, 25.4030)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21108D #7C8D10
analogous
#103D8D #21108D #5F108D
triadic
#21108D #8D2110 #108D21
tetradic
#21108D #8D103D #7C8D10 #108D5F
square
#21108D #8D103D #7C8D10 #108D5F
split-complementary
#21108D #8D5F10 #3D8D10
monochromatic
#07041F #140A56 #21108D #2E16C4 #4930E7

Accessibility & contrast

On white

13.78
#21108D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#21108D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21108D
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21108D#FFFFFF#000000##FFFFFF
##21108D1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003290
Deuteranopia (green-blind)
#00278B
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #21108d;
/* rgb */ color: rgb(33, 16, 141);
/* oklch */ color: oklch(31.8% 0.185 274.1);
Tailwind
colors: {
  custom: {
    50: '#7155b0',
    500: '#21108d',
    950: '#000000',
  },
}
SCSS
$custom: #21108d;
$custom-light: #7155b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21108d",
  "rgb": {
    "r": 33,
    "g": 16,
    "b": 141
  },
  "hsl": {
    "h": 248.16,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31785,
    "c": 0.18473,
    "h": 274.1
  },
  "luminance": 0.02617
}

Semantic roles & 50–950 ramp

primary
#21108D
secondary
#AFC237
accent
#F632DB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #21108D

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

Preview Lab → · Contrast checker → · Palette generator →

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