#21498B#21498B

#21498B is a dark, moderate blue. Relative luminance 0.070; OKLCH L 41.4% C 0.119 H 259.9°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#21498B
RGBrgb(33, 73, 139)
HSLhsl(217, 62%, 34%)
HSVhsv(217, 76%, 55%)
CMYKcmyk(76.3%, 47.5%, 0%, 45.5%)
CIE-LABlab(31.70, 10.46, -40.82)
CIE-LCHlch(31.70, 42.14, 284.38°)
OKLaboklab(41.45% -0.0208 -0.117)
OKLCHoklch(41.45% 0.119 259.9)
XYZxyz(7.6683, 6.9516, 25.3588)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21498B #8B6321
analogous
#217E8B #21498B #2E218B
triadic
#21498B #8B2149 #498B21
tetradic
#21498B #8B217E #8B6321 #218B2E
square
#21498B #8B217E #8B6321 #218B2E
split-complementary
#21498B #8B2E21 #7E8B21
monochromatic
#0A1528 #152F5A #21498B #2D63BC #5183D6

Accessibility & contrast

On white

8.78
#21498B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#21498B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21498B
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21498B#FFFFFF#000000##FFFFFF
##21498B1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26508D
Deuteranopia (green-blind)
#0D468A
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #21498b;
/* rgb */ color: rgb(33, 73, 139);
/* oklch */ color: oklch(41.4% 0.119 259.9);
Tailwind
colors: {
  custom: {
    50: '#6c7bad',
    500: '#21498b',
    950: '#000000',
  },
}
SCSS
$custom: #21498b;
$custom-light: #6c7bad;
$custom-dark: #000000;
JSON
{
  "hex": "#21498b",
  "rgb": {
    "r": 33,
    "g": 73,
    "b": 139
  },
  "hsl": {
    "h": 217.358,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.41447,
    "c": 0.11888,
    "h": 259.9
  },
  "luminance": 0.06953
}

Semantic roles & 50–950 ramp

primary
#21498B
secondary
#B9914F
accent
#A843E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #21498B

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

Preview Lab → · Contrast checker → · Palette generator →

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