#21488D#21488D

#21488D is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.4% C 0.123 H 260.8°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#21488D
RGBrgb(33, 72, 141)
HSLhsl(218, 62%, 34%)
HSVhsv(218, 77%, 55%)
CMYKcmyk(76.6%, 48.9%, 0%, 44.7%)
CIE-LABlab(31.53, 11.94, -42.31)
CIE-LCHlch(31.53, 43.96, 285.76°)
OKLaboklab(41.37% -0.0196 -0.1214)
OKLCHoklch(41.37% 0.123 260.8)
XYZxyz(7.7505, 6.8803, 26.1137)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21488D #8D6621
analogous
#217E8D #21488D #30218D
triadic
#21488D #8D2148 #488D21
tetradic
#21488D #8D217E #8D6621 #218D30
square
#21488D #8D217E #8D6621 #218D30
split-complementary
#21488D #8D3021 #7E8D21
monochromatic
#0A152A #152F5B #21488D #2D61BF #5282D6

Accessibility & contrast

On white

8.84
#21488D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#21488D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21488D
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21488D#FFFFFF#000000##FFFFFF
##21488D1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224F90
Deuteranopia (green-blind)
#02468C
Tritanopia (blue-blind)
#005863
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #21488d;
/* rgb */ color: rgb(33, 72, 141);
/* oklch */ color: oklch(41.4% 0.123 260.8);
Tailwind
colors: {
  custom: {
    50: '#6c7aaf',
    500: '#21488d',
    950: '#000000',
  },
}
SCSS
$custom: #21488d;
$custom-light: #6c7aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#21488d",
  "rgb": {
    "r": 33,
    "g": 72,
    "b": 141
  },
  "hsl": {
    "h": 218.333,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41365,
    "c": 0.12302,
    "h": 260.8
  },
  "luminance": 0.06881
}

Semantic roles & 50–950 ramp

primary
#21488D
secondary
#BA9450
accent
#AA43E5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #21488D

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

Preview Lab → · Contrast checker → · Palette generator →

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