#21107E#21107E

#21107E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.167 H 276.2°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#21107E
RGBrgb(33, 16, 126)
HSLhsl(249, 77%, 28%)
HSVhsv(249, 87%, 49%)
CMYKcmyk(73.8%, 87.3%, 0%, 50.6%)
CIE-LABlab(16.50, 41.81, -57.49)
CIE-LCHlch(16.50, 71.09, 306.03°)
OKLaboklab(29.91% 0.0182 -0.1661)
OKLCHoklch(29.91% 0.167 276.2)
XYZxyz(4.5772, 2.1998, 19.9180)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21107E #6D7E10
analogous
#10367E #21107E #58107E
triadic
#21107E #7E2110 #107E21
tetradic
#21107E #7E1036 #6D7E10 #107E58
square
#21107E #7E1036 #6D7E10 #107E58
split-complementary
#21107E #7E5810 #367E10
monochromatic
#07031B #130948 #21107E #2F17B4 #4225E3

Accessibility & contrast

On white

14.58
#21107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#21107E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21107E
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21107E#FFFFFF#000000##FFFFFF
##21107E1.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00247C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #21107e;
/* rgb */ color: rgb(33, 16, 126);
/* oklch */ color: oklch(29.9% 0.167 276.2);
Tailwind
colors: {
  custom: {
    50: '#6d53a5',
    500: '#21107e',
    950: '#000000',
  },
}
SCSS
$custom: #21107e;
$custom-light: #6d53a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21107e",
  "rgb": {
    "r": 33,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 249.273,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.2991,
    "c": 0.16712,
    "h": 276.2
  },
  "luminance": 0.022
}

Semantic roles & 50–950 ramp

primary
#21107E
secondary
#A1B436
accent
#F434D6
background
#F7F4FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21107E

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

Preview Lab → · Contrast checker → · Palette generator →

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