#21489E#21489E

#21489E is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.7% C 0.147 H 263.2°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#21489E
RGBrgb(33, 72, 158)
HSLhsl(221, 65%, 37%)
HSVhsv(221, 79%, 62%)
CMYKcmyk(79.1%, 54.4%, 0%, 38%)
CIE-LABlab(32.76, 18.70, -50.68)
CIE-LCHlch(32.76, 54.02, 290.25°)
OKLaboklab(42.69% -0.0174 -0.1461)
OKLCHoklch(42.69% 0.147 263.2)
XYZxyz(9.1139, 7.4256, 33.2941)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21489E #9E7721
analogous
#21879E #21489E #39219E
triadic
#21489E #9E2148 #489E21
tetradic
#21489E #9E2187 #9E7721 #219E39
square
#21489E #9E2187 #9E7721 #219E39
split-complementary
#21489E #9E3921 #879E21
monochromatic
#0C1A39 #16316B #21489E #2C5FD1 #5C85DD

Accessibility & contrast

On white

8.45
#21489E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#21489E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21489E
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21489E#FFFFFF#000000##FFFFFF
##21489E1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0253A1
Deuteranopia (green-blind)
#00489C
Tritanopia (blue-blind)
#005D6C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #21489e;
/* rgb */ color: rgb(33, 72, 158);
/* oklch */ color: oklch(42.7% 0.147 263.2);
Tailwind
colors: {
  custom: {
    50: '#707abb',
    500: '#21489e',
    950: '#000000',
  },
}
SCSS
$custom: #21489e;
$custom-light: #707abb;
$custom-dark: #000000;
JSON
{
  "hex": "#21489e",
  "rgb": {
    "r": 33,
    "g": 72,
    "b": 158
  },
  "hsl": {
    "h": 221.28,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.42688,
    "c": 0.14711,
    "h": 263.2
  },
  "luminance": 0.07427
}

Semantic roles & 50–950 ramp

primary
#21489E
secondary
#C1A159
accent
#B43FE8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #21489E

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

Preview Lab → · Contrast checker → · Palette generator →

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