#21408E#21408E

#21408E is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.7% C 0.135 H 264.6°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#21408E
RGBrgb(33, 64, 142)
HSLhsl(223, 62%, 34%)
HSVhsv(223, 77%, 56%)
CMYKcmyk(76.8%, 54.9%, 0%, 44.3%)
CIE-LABlab(29.27, 17.82, -46.58)
CIE-LCHlch(29.27, 49.88, 290.94°)
OKLaboklab(39.66% -0.0127 -0.1342)
OKLCHoklch(39.66% 0.135 264.6)
XYZxyz(7.3414, 5.9423, 26.3460)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21408E #8E6F21
analogous
#21778E #21408E #39218E
triadic
#21408E #8E2140 #408E21
tetradic
#21408E #8E2177 #8E6F21 #218E39
square
#21408E #8E2177 #8E6F21 #218E39
split-complementary
#21408E #8E3921 #778E21
monochromatic
#0A132B #152A5C #21408E #2D56C0 #5278D7

Accessibility & contrast

On white

9.60
#21408E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21408E
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21408E#FFFFFF#000000##FFFFFF
##21408E1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034A91
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #21408e;
/* rgb */ color: rgb(33, 64, 142);
/* oklch */ color: oklch(39.7% 0.135 264.6);
Tailwind
colors: {
  custom: {
    50: '#6d74b0',
    500: '#21408e',
    950: '#000000',
  },
}
SCSS
$custom: #21408e;
$custom-light: #6d74b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21408e",
  "rgb": {
    "r": 33,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 222.936,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3966,
    "c": 0.13478,
    "h": 264.6
  },
  "luminance": 0.05943
}

Semantic roles & 50–950 ramp

primary
#21408E
secondary
#BA9C50
accent
#B742E5
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #21408E

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

Preview Lab → · Contrast checker → · Palette generator →

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