#21207F#21207F

#21207F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.154 H 273.9°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#21207F
RGBrgb(33, 32, 127)
HSLhsl(241, 60%, 31%)
HSVhsv(241, 75%, 50%)
CMYKcmyk(74%, 74.8%, 0%, 50.2%)
CIE-LABlab(19.59, 33.60, -53.02)
CIE-LCHlch(19.59, 62.78, 302.37°)
OKLaboklab(32.1% 0.0106 -0.1533)
OKLCHoklch(32.1% 0.154 273.9)
XYZxyz(4.9732, 2.8882, 20.3699)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21207F #7E7F20
analogous
#204E7F #21207F #50207F
triadic
#21207F #7F2120 #207F21
tetradic
#21207F #7F204E #7E7F20 #207F50
square
#21207F #7F204E #7E7F20 #207F50
split-complementary
#21207F #7F5020 #4E7F20
monochromatic
#08071D #14144E #21207F #2E2CB0 #4A48D1

Accessibility & contrast

On white

13.31
#21207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#21207F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21207F
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21207F#FFFFFF#000000##FFFFFF
##21207F1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21207f;
/* rgb */ color: rgb(33, 32, 127);
/* oklch */ color: oklch(32.1% 0.154 273.9);
Tailwind
colors: {
  custom: {
    50: '#6c5ca5',
    500: '#21207f',
    950: '#000000',
  },
}
SCSS
$custom: #21207f;
$custom-light: #6c5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#21207f",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 240.632,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32105,
    "c": 0.15371,
    "h": 273.9
  },
  "luminance": 0.02889
}

Semantic roles & 50–950 ramp

primary
#21207F
secondary
#B1B249
accent
#E345E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #21207F

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

Preview Lab → · Contrast checker → · Palette generator →

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