#21489F#21489F

#21489F is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.8% C 0.148 H 263.3°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#21489F
RGBrgb(33, 72, 159)
HSLhsl(221, 66%, 38%)
HSVhsv(221, 79%, 62%)
CMYKcmyk(79.2%, 54.7%, 0%, 37.6%)
CIE-LABlab(32.83, 19.09, -51.16)
CIE-LCHlch(32.83, 54.60, 290.46°)
OKLaboklab(42.77% -0.0173 -0.1475)
OKLCHoklch(42.77% 0.149 263.3)
XYZxyz(9.2003, 7.4602, 33.7492)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21489F #9F7821
analogous
#21879F #21489F #39219F
triadic
#21489F #9F2148 #489F21
tetradic
#21489F #9F2187 #9F7821 #219F39
square
#21489F #9F2187 #9F7821 #219F39
split-complementary
#21489F #9F3921 #879F21
monochromatic
#0C1A3A #16316C #21489F #2C5FD2 #5D85DD

Accessibility & contrast

On white

8.43
#21489F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21489F
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21489F#FFFFFF#000000##FFFFFF
##21489F1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A2
Deuteranopia (green-blind)
#00489D
Tritanopia (blue-blind)
#005D6C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #21489f;
/* rgb */ color: rgb(33, 72, 159);
/* oklch */ color: oklch(42.8% 0.148 263.3);
Tailwind
colors: {
  custom: {
    50: '#717abc',
    500: '#21489f',
    950: '#000000',
  },
}
SCSS
$custom: #21489f;
$custom-light: #717abc;
$custom-dark: #000000;
JSON
{
  "hex": "#21489f",
  "rgb": {
    "r": 33,
    "g": 72,
    "b": 159
  },
  "hsl": {
    "h": 221.429,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42769,
    "c": 0.1485,
    "h": 263.3
  },
  "luminance": 0.07461
}

Semantic roles & 50–950 ramp

primary
#21489F
secondary
#C2A25A
accent
#B43FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #21489F

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

Preview Lab → · Contrast checker → · Palette generator →

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