#21207D#21207D

#21207D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.151 H 274.1°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#21207D
RGBrgb(33, 32, 125)
HSLhsl(241, 59%, 31%)
HSVhsv(241, 74%, 49%)
CMYKcmyk(73.6%, 74.4%, 0%, 51%)
CIE-LABlab(19.38, 32.89, -52.10)
CIE-LCHlch(19.38, 61.62, 302.26°)
OKLaboklab(31.89% 0.0109 -0.1507)
OKLCHoklch(31.89% 0.151 274.1)
XYZxyz(4.8442, 2.8366, 19.6903)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21207D #7C7D20
analogous
#204D7D #21207D #4F207D
triadic
#21207D #7D2120 #207D21
tetradic
#21207D #7D204D #7C7D20 #207D4F
square
#21207D #7D204D #7C7D20 #207D4F
split-complementary
#21207D #7D4F20 #4D7D20
monochromatic
#07071C #14144C #21207D #2E2CAE #4947D0

Accessibility & contrast

On white

13.40
#21207D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#21207D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21207D
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21207D#FFFFFF#000000##FFFFFF
##21207D1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21207d;
/* rgb */ color: rgb(33, 32, 125);
/* oklch */ color: oklch(31.9% 0.151 274.1);
Tailwind
colors: {
  custom: {
    50: '#6c5ca4',
    500: '#21207d',
    950: '#000000',
  },
}
SCSS
$custom: #21207d;
$custom-light: #6c5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#21207d",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 125
  },
  "hsl": {
    "h": 240.645,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31889,
    "c": 0.15107,
    "h": 274.1
  },
  "luminance": 0.02837
}

Semantic roles & 50–950 ramp

primary
#21207D
secondary
#AFB049
accent
#E245E1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #21207D

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

Preview Lab → · Contrast checker → · Palette generator →

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