#21428D#21428D

#21428D is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.0% C 0.131 H 263.7°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#21428D
RGBrgb(33, 66, 141)
HSLhsl(222, 62%, 34%)
HSVhsv(222, 77%, 55%)
CMYKcmyk(76.6%, 53.2%, 0%, 44.7%)
CIE-LABlab(29.77, 16.05, -45.15)
CIE-LCHlch(29.77, 47.92, 289.56°)
OKLaboklab(40.02% -0.0144 -0.1299)
OKLCHoklch(40.02% 0.131 263.7)
XYZxyz(7.3814, 6.1420, 25.9906)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21428D #8D6C21
analogous
#21788D #21428D #36218D
triadic
#21428D #8D2142 #428D21
tetradic
#21428D #8D2178 #8D6C21 #218D36
square
#21428D #8D2178 #8D6C21 #218D36
split-complementary
#21428D #8D3621 #788D21
monochromatic
#0A142A #152B5B #21428D #2D59BF #527AD6

Accessibility & contrast

On white

9.42
#21428D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#21428D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21428D
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21428D#FFFFFF#000000##FFFFFF
##21428D1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104B90
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #21428d;
/* rgb */ color: rgb(33, 66, 141);
/* oklch */ color: oklch(40.0% 0.131 263.7);
Tailwind
colors: {
  custom: {
    50: '#6d75af',
    500: '#21428d',
    950: '#000000',
  },
}
SCSS
$custom: #21428d;
$custom-light: #6d75af;
$custom-dark: #000000;
JSON
{
  "hex": "#21428d",
  "rgb": {
    "r": 33,
    "g": 66,
    "b": 141
  },
  "hsl": {
    "h": 221.667,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40016,
    "c": 0.13074,
    "h": 263.7
  },
  "luminance": 0.06143
}

Semantic roles & 50–950 ramp

primary
#21428D
secondary
#BA9A50
accent
#B343E5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #21428D

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

Preview Lab → · Contrast checker → · Palette generator →

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