#21489D#21489D

#21489D is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.6% C 0.146 H 263.1°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#21489D
RGBrgb(33, 72, 157)
HSLhsl(221, 65%, 37%)
HSVhsv(221, 79%, 62%)
CMYKcmyk(79%, 54.1%, 0%, 38.4%)
CIE-LABlab(32.68, 18.30, -50.20)
CIE-LCHlch(32.68, 53.43, 290.03°)
OKLaboklab(42.61% -0.0175 -0.1447)
OKLCHoklch(42.61% 0.146 263.1)
XYZxyz(9.0282, 7.3913, 32.8426)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21489D #9D7621
analogous
#21869D #21489D #38219D
triadic
#21489D #9D2148 #489D21
tetradic
#21489D #9D2186 #9D7621 #219D38
square
#21489D #9D2186 #9D7621 #219D38
split-complementary
#21489D #9D3821 #869D21
monochromatic
#0C1A38 #16316A #21489D #2C5FD0 #5C84DD

Accessibility & contrast

On white

8.47
#21489D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#21489D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21489D
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21489D#FFFFFF#000000##FFFFFF
##21489D1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0553A0
Deuteranopia (green-blind)
#00479B
Tritanopia (blue-blind)
#005D6B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #21489d;
/* rgb */ color: rgb(33, 72, 157);
/* oklch */ color: oklch(42.6% 0.146 263.1);
Tailwind
colors: {
  custom: {
    50: '#707abb',
    500: '#21489d',
    950: '#000000',
  },
}
SCSS
$custom: #21489d;
$custom-light: #707abb;
$custom-dark: #000000;
JSON
{
  "hex": "#21489d",
  "rgb": {
    "r": 33,
    "g": 72,
    "b": 157
  },
  "hsl": {
    "h": 221.129,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42607,
    "c": 0.14572,
    "h": 263.1
  },
  "luminance": 0.07392
}

Semantic roles & 50–950 ramp

primary
#21489D
secondary
#C1A059
accent
#B340E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #21489D

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

Preview Lab → · Contrast checker → · Palette generator →

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