#21107F#21107F

#21107F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.0% C 0.168 H 276.1°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#21107F
RGBrgb(33, 16, 127)
HSLhsl(249, 78%, 28%)
HSVhsv(249, 87%, 50%)
CMYKcmyk(74%, 87.4%, 0%, 50.2%)
CIE-LABlab(16.63, 42.12, -57.92)
CIE-LCHlch(16.63, 71.61, 306.02°)
OKLaboklab(30.03% 0.0179 -0.1674)
OKLCHoklch(30.03% 0.168 276.1)
XYZxyz(4.6420, 2.2258, 20.2595)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21107F #6E7F10
analogous
#10377F #21107F #58107F
triadic
#21107F #7F2110 #107F21
tetradic
#21107F #7F1037 #6E7F10 #107F58
square
#21107F #7F1037 #6E7F10 #107F58
split-complementary
#21107F #7F5810 #377F10
monochromatic
#07031B #130949 #21107F #2F17B5 #4326E4

Accessibility & contrast

On white

14.53
#21107F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21107F
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21107F#FFFFFF#000000##FFFFFF
##21107F1.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21107f;
/* rgb */ color: rgb(33, 16, 127);
/* oklch */ color: oklch(30.0% 0.168 276.1);
Tailwind
colors: {
  custom: {
    50: '#6e53a5',
    500: '#21107f',
    950: '#000000',
  },
}
SCSS
$custom: #21107f;
$custom-light: #6e53a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21107f",
  "rgb": {
    "r": 33,
    "g": 16,
    "b": 127
  },
  "hsl": {
    "h": 249.189,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30033,
    "c": 0.16832,
    "h": 276.1
  },
  "luminance": 0.02226
}

Semantic roles & 50–950 ramp

primary
#21107F
secondary
#A2B536
accent
#F434D7
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21107F

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

Preview Lab → · Contrast checker → · Palette generator →

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