#21408F#21408F

#21408F is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.7% C 0.136 H 264.7°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#21408F
RGBrgb(33, 64, 143)
HSLhsl(223, 63%, 35%)
HSVhsv(223, 77%, 56%)
CMYKcmyk(76.9%, 55.2%, 0%, 43.9%)
CIE-LABlab(29.34, 18.22, -47.07)
CIE-LCHlch(29.34, 50.48, 291.16°)
OKLaboklab(39.74% -0.0126 -0.1356)
OKLCHoklch(39.74% 0.136 264.7)
XYZxyz(7.4168, 5.9725, 26.7432)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21408F #8F7021
analogous
#21778F #21408F #39218F
triadic
#21408F #8F2140 #408F21
tetradic
#21408F #8F2177 #8F7021 #218F39
square
#21408F #8F2177 #8F7021 #218F39
split-complementary
#21408F #8F3921 #778F21
monochromatic
#0A132C #162A5D #21408F #2C56C1 #5378D7

Accessibility & contrast

On white

9.57
#21408F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#21408F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21408F
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21408F#FFFFFF#000000##FFFFFF
##21408F1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #21408f;
/* rgb */ color: rgb(33, 64, 143);
/* oklch */ color: oklch(39.7% 0.136 264.7);
Tailwind
colors: {
  custom: {
    50: '#6d74b0',
    500: '#21408f',
    950: '#000000',
  },
}
SCSS
$custom: #21408f;
$custom-light: #6d74b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21408f",
  "rgb": {
    "r": 33,
    "g": 64,
    "b": 143
  },
  "hsl": {
    "h": 223.091,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39742,
    "c": 0.13621,
    "h": 264.7
  },
  "luminance": 0.05973
}

Semantic roles & 50–950 ramp

primary
#21408F
secondary
#BB9D51
accent
#B842E6
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080811
muted
#7B7B80

Preview Lab

Preview with #21408F

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

Preview Lab → · Contrast checker → · Palette generator →

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