#21428B#21428B

#21428B is a dark, vivid blue. Relative luminance 0.061; OKLCH L 39.9% C 0.128 H 263.4°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#21428B
RGBrgb(33, 66, 139)
HSLhsl(221, 62%, 34%)
HSVhsv(221, 76%, 55%)
CMYKcmyk(76.3%, 52.5%, 0%, 45.5%)
CIE-LABlab(29.62, 15.25, -44.16)
CIE-LCHlch(29.62, 46.72, 289.05°)
OKLaboklab(39.86% -0.0146 -0.127)
OKLCHoklch(39.86% 0.128 263.4)
XYZxyz(7.2340, 6.0830, 25.2140)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21428B #8B6A21
analogous
#21778B #21428B #35218B
triadic
#21428B #8B2142 #428B21
tetradic
#21428B #8B2177 #8B6A21 #218B35
square
#21428B #8B2177 #8B6A21 #218B35
split-complementary
#21428B #8B3521 #778B21
monochromatic
#0A1328 #152B5A #21428B #2D59BC #517AD6

Accessibility & contrast

On white

9.47
#21428B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#21428B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21428B
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21428B#FFFFFF#000000##FFFFFF
##21428B1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144B8E
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#005460
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #21428b;
/* rgb */ color: rgb(33, 66, 139);
/* oklch */ color: oklch(39.9% 0.128 263.4);
Tailwind
colors: {
  custom: {
    50: '#6c75ad',
    500: '#21428b',
    950: '#000000',
  },
}
SCSS
$custom: #21428b;
$custom-light: #6c75ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21428b",
  "rgb": {
    "r": 33,
    "g": 66,
    "b": 139
  },
  "hsl": {
    "h": 221.321,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39858,
    "c": 0.12786,
    "h": 263.4
  },
  "luminance": 0.06084
}

Semantic roles & 50–950 ramp

primary
#21428B
secondary
#B9984F
accent
#B243E5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #21428B

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

Preview Lab → · Contrast checker → · Palette generator →

#21428B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva