#21428E#21428E

#21428E is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.1% C 0.132 H 263.8°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#21428E
RGBrgb(33, 66, 142)
HSLhsl(222, 62%, 34%)
HSVhsv(222, 77%, 56%)
CMYKcmyk(76.8%, 53.5%, 0%, 44.3%)
CIE-LABlab(29.84, 16.45, -45.65)
CIE-LCHlch(29.84, 48.52, 289.81°)
OKLaboklab(40.1% -0.0143 -0.1314)
OKLCHoklch(40.1% 0.132 263.8)
XYZxyz(7.4562, 6.1719, 26.3843)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21428E #8E6D21
analogous
#21798E #21428E #37218E
triadic
#21428E #8E2142 #428E21
tetradic
#21428E #8E2179 #8E6D21 #218E37
square
#21428E #8E2179 #8E6D21 #218E37
split-complementary
#21428E #8E3721 #798E21
monochromatic
#0A142B #152B5C #21428E #2D59C0 #527BD7

Accessibility & contrast

On white

9.40
#21428E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21428E
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21428E#FFFFFF#000000##FFFFFF
##21428E1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4C91
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #21428e;
/* rgb */ color: rgb(33, 66, 142);
/* oklch */ color: oklch(40.1% 0.132 263.8);
Tailwind
colors: {
  custom: {
    50: '#6d75b0',
    500: '#21428e',
    950: '#000000',
  },
}
SCSS
$custom: #21428e;
$custom-light: #6d75b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21428e",
  "rgb": {
    "r": 33,
    "g": 66,
    "b": 142
  },
  "hsl": {
    "h": 221.835,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40096,
    "c": 0.13218,
    "h": 263.8
  },
  "luminance": 0.06173
}

Semantic roles & 50–950 ramp

primary
#21428E
secondary
#BA9A50
accent
#B442E5
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #21428E

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

Preview Lab → · Contrast checker → · Palette generator →

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