#21458B#21458B

#21458B is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.5% C 0.124 H 262.0°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#21458B
RGBrgb(33, 69, 139)
HSLhsl(220, 62%, 34%)
HSVhsv(220, 76%, 55%)
CMYKcmyk(76.3%, 50.4%, 0%, 45.5%)
CIE-LABlab(30.50, 13.19, -42.74)
CIE-LCHlch(30.50, 44.73, 287.15°)
OKLaboklab(40.53% -0.0173 -0.1228)
OKLCHoklch(40.53% 0.124 262)
XYZxyz(7.4139, 6.4428, 25.2740)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21458B #8B6721
analogous
#217A8B #21458B #32218B
triadic
#21458B #8B2145 #458B21
tetradic
#21458B #8B217A #8B6721 #218B32
square
#21458B #8B217A #8B6721 #218B32
split-complementary
#21458B #8B3221 #7A8B21
monochromatic
#0A1428 #152C5A #21458B #2D5EBC #517ED6

Accessibility & contrast

On white

9.18
#21458B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#21458B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21458B
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21458B#FFFFFF#000000##FFFFFF
##21458B1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4D8E
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#005661
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #21458b;
/* rgb */ color: rgb(33, 69, 139);
/* oklch */ color: oklch(40.5% 0.124 262.0);
Tailwind
colors: {
  custom: {
    50: '#6c78ad',
    500: '#21458b',
    950: '#000000',
  },
}
SCSS
$custom: #21458b;
$custom-light: #6c78ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21458b",
  "rgb": {
    "r": 33,
    "g": 69,
    "b": 139
  },
  "hsl": {
    "h": 219.623,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40531,
    "c": 0.12398,
    "h": 262
  },
  "luminance": 0.06444
}

Semantic roles & 50–950 ramp

primary
#21458B
secondary
#B9954F
accent
#AE43E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #21458B

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

Preview Lab → · Contrast checker → · Palette generator →

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