#21408C#21408C

#21408C is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.5% C 0.132 H 264.4°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#21408C
RGBrgb(33, 64, 140)
HSLhsl(223, 62%, 34%)
HSVhsv(223, 76%, 55%)
CMYKcmyk(76.4%, 54.3%, 0%, 45.1%)
CIE-LABlab(29.11, 17.03, -45.60)
CIE-LCHlch(29.11, 48.67, 290.48°)
OKLaboklab(39.5% -0.0129 -0.1313)
OKLCHoklch(39.5% 0.132 264.4)
XYZxyz(7.1925, 5.8828, 25.5623)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21408C #8C6D21
analogous
#21768C #21408C #38218C
triadic
#21408C #8C2140 #408C21
tetradic
#21408C #8C2176 #8C6D21 #218C38
square
#21408C #8C2176 #8C6D21 #218C38
split-complementary
#21408C #8C3821 #768C21
monochromatic
#0A1329 #15295A #21408C #2D57BE #5178D6

Accessibility & contrast

On white

9.65
#21408C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#21408C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21408C
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21408C#FFFFFF#000000##FFFFFF
##21408C1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084A8F
Deuteranopia (green-blind)
#00408A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #21408c;
/* rgb */ color: rgb(33, 64, 140);
/* oklch */ color: oklch(39.5% 0.132 264.4);
Tailwind
colors: {
  custom: {
    50: '#6d74ae',
    500: '#21408c',
    950: '#000000',
  },
}
SCSS
$custom: #21408c;
$custom-light: #6d74ae;
$custom-dark: #000000;
JSON
{
  "hex": "#21408c",
  "rgb": {
    "r": 33,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 222.617,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39497,
    "c": 0.13191,
    "h": 264.4
  },
  "luminance": 0.05884
}

Semantic roles & 50–950 ramp

primary
#21408C
secondary
#B99B4F
accent
#B643E5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #21408C

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

Preview Lab → · Contrast checker → · Palette generator →

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