#21488E#21488E

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

Color values

HEX#21488E
RGBrgb(33, 72, 142)
HSLhsl(219, 62%, 34%)
HSVhsv(219, 77%, 56%)
CMYKcmyk(76.8%, 49.3%, 0%, 44.3%)
CIE-LABlab(31.60, 12.34, -42.81)
CIE-LCHlch(31.60, 44.55, 286.08°)
OKLaboklab(41.44% -0.0194 -0.1229)
OKLCHoklch(41.44% 0.124 261)
XYZxyz(7.8253, 6.9102, 26.5073)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21488E #8E6721
analogous
#217F8E #21488E #31218E
triadic
#21488E #8E2148 #488E21
tetradic
#21488E #8E217F #8E6721 #218E31
square
#21488E #8E217F #8E6721 #218E31
split-complementary
#21488E #8E3121 #7F8E21
monochromatic
#0A162B #152F5C #21488E #2D61C0 #5282D7

Accessibility & contrast

On white

8.82
#21488E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21488E
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21488E#FFFFFF#000000##FFFFFF
##21488E1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215091
Deuteranopia (green-blind)
#00468D
Tritanopia (blue-blind)
#005964
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #21488e;
/* rgb */ color: rgb(33, 72, 142);
/* oklch */ color: oklch(41.4% 0.124 261.0);
Tailwind
colors: {
  custom: {
    50: '#6d7aaf',
    500: '#21488e',
    950: '#000000',
  },
}
SCSS
$custom: #21488e;
$custom-light: #6d7aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#21488e",
  "rgb": {
    "r": 33,
    "g": 72,
    "b": 142
  },
  "hsl": {
    "h": 218.532,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.41439,
    "c": 0.12446,
    "h": 261
  },
  "luminance": 0.06911
}

Semantic roles & 50–950 ramp

primary
#21488E
secondary
#BA9450
accent
#AB42E5
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #21488E

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

Preview Lab → · Contrast checker → · Palette generator →

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