#21418B#21418B

#21418B is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.6% C 0.129 H 263.9°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#21418B
RGBrgb(33, 65, 139)
HSLhsl(222, 62%, 34%)
HSVhsv(222, 76%, 55%)
CMYKcmyk(76.3%, 53.2%, 0%, 45.5%)
CIE-LABlab(29.33, 15.94, -44.63)
CIE-LCHlch(29.33, 47.39, 289.65°)
OKLaboklab(39.64% -0.0138 -0.1284)
OKLCHoklch(39.64% 0.129 263.9)
XYZxyz(7.1760, 5.9672, 25.1947)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21418B #8B6B21
analogous
#21768B #21418B #36218B
triadic
#21418B #8B2141 #418B21
tetradic
#21418B #8B2176 #8B6B21 #218B36
square
#21418B #8B2176 #8B6B21 #218B36
split-complementary
#21418B #8B3621 #768B21
monochromatic
#0A1328 #152A5A #21418B #2D58BC #5179D6

Accessibility & contrast

On white

9.57
#21418B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#21418B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21418B
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21418B#FFFFFF#000000##FFFFFF
##21418B1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104A8E
Deuteranopia (green-blind)
#00408A
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #21418b;
/* rgb */ color: rgb(33, 65, 139);
/* oklch */ color: oklch(39.6% 0.129 263.9);
Tailwind
colors: {
  custom: {
    50: '#6c75ad',
    500: '#21418b',
    950: '#000000',
  },
}
SCSS
$custom: #21418b;
$custom-light: #6c75ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21418b",
  "rgb": {
    "r": 33,
    "g": 65,
    "b": 139
  },
  "hsl": {
    "h": 221.887,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39636,
    "c": 0.12916,
    "h": 263.9
  },
  "luminance": 0.05968
}

Semantic roles & 50–950 ramp

primary
#21418B
secondary
#B9994F
accent
#B443E5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #21418B

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

Preview Lab → · Contrast checker → · Palette generator →

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