#21107D#21107D

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

Color values

HEX#21107D
RGBrgb(33, 16, 125)
HSLhsl(249, 77%, 28%)
HSVhsv(249, 87%, 49%)
CMYKcmyk(73.6%, 87.2%, 0%, 51%)
CIE-LABlab(16.38, 41.50, -57.07)
CIE-LCHlch(16.38, 70.56, 306.03°)
OKLaboklab(29.79% 0.0185 -0.1649)
OKLCHoklch(29.79% 0.166 276.4)
XYZxyz(4.5130, 2.1742, 19.5799)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21107D #6C7D10
analogous
#10357D #21107D #58107D
triadic
#21107D #7D2110 #107D21
tetradic
#21107D #7D1035 #6C7D10 #107D58
square
#21107D #7D1035 #6C7D10 #107D58
split-complementary
#21107D #7D5810 #357D10
monochromatic
#07031B #130947 #21107D #2F17B3 #4224E3

Accessibility & contrast

On white

14.63
#21107D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21107D
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21107D#FFFFFF#000000##FFFFFF
##21107D1.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)
#002D80
Deuteranopia (green-blind)
#00247B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #21107d;
/* rgb */ color: rgb(33, 16, 125);
/* oklch */ color: oklch(29.8% 0.166 276.4);
Tailwind
colors: {
  custom: {
    50: '#6d53a4',
    500: '#21107d',
    950: '#000000',
  },
}
SCSS
$custom: #21107d;
$custom-light: #6d53a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21107d",
  "rgb": {
    "r": 33,
    "g": 16,
    "b": 125
  },
  "hsl": {
    "h": 249.358,
    "s": 77.305,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29786,
    "c": 0.16593,
    "h": 276.4
  },
  "luminance": 0.02175
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21107D

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

Preview Lab → · Contrast checker → · Palette generator →

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