#21498D#21498D

#21498D is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.6% C 0.122 H 260.3°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#21498D
RGBrgb(33, 73, 141)
HSLhsl(218, 62%, 34%)
HSVhsv(218, 77%, 55%)
CMYKcmyk(76.6%, 48.2%, 0%, 44.7%)
CIE-LABlab(31.83, 11.26, -41.83)
CIE-LCHlch(31.83, 43.32, 285.07°)
OKLaboklab(41.59% -0.0205 -0.12)
OKLCHoklch(41.59% 0.122 260.3)
XYZxyz(7.8157, 7.0106, 26.1354)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21498D #8D6521
analogous
#217F8D #21498D #2F218D
triadic
#21498D #8D2149 #498D21
tetradic
#21498D #8D217F #8D6521 #218D2F
square
#21498D #8D217F #8D6521 #218D2F
split-complementary
#21498D #8D2F21 #7F8D21
monochromatic
#0A162A #152F5B #21498D #2D63BF #5283D6

Accessibility & contrast

On white

8.74
#21498D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#21498D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21498D
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21498D#FFFFFF#000000##FFFFFF
##21498D1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245090
Deuteranopia (green-blind)
#07468C
Tritanopia (blue-blind)
#005964
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #21498d;
/* rgb */ color: rgb(33, 73, 141);
/* oklch */ color: oklch(41.6% 0.122 260.3);
Tailwind
colors: {
  custom: {
    50: '#6c7baf',
    500: '#21498d',
    950: '#000000',
  },
}
SCSS
$custom: #21498d;
$custom-light: #6c7baf;
$custom-dark: #000000;
JSON
{
  "hex": "#21498d",
  "rgb": {
    "r": 33,
    "g": 73,
    "b": 141
  },
  "hsl": {
    "h": 217.778,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41594,
    "c": 0.12176,
    "h": 260.3
  },
  "luminance": 0.07012
}

Semantic roles & 50–950 ramp

primary
#21498D
secondary
#BA9350
accent
#A943E5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #21498D

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

Preview Lab → · Contrast checker → · Palette generator →

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