#21418D#21418D

#21418D is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.8% C 0.132 H 264.1°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#21418D
RGBrgb(33, 65, 141)
HSLhsl(222, 62%, 34%)
HSVhsv(222, 77%, 55%)
CMYKcmyk(76.6%, 53.9%, 0%, 44.7%)
CIE-LABlab(29.48, 16.74, -45.62)
CIE-LCHlch(29.48, 48.60, 290.14°)
OKLaboklab(39.8% -0.0136 -0.1313)
OKLCHoklch(39.8% 0.132 264.1)
XYZxyz(7.3235, 6.0262, 25.9713)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21418D #8D6D21
analogous
#21778D #21418D #37218D
triadic
#21418D #8D2141 #418D21
tetradic
#21418D #8D2177 #8D6D21 #218D37
square
#21418D #8D2177 #8D6D21 #218D37
split-complementary
#21418D #8D3721 #778D21
monochromatic
#0A132A #152A5B #21418D #2D58BF #5279D6

Accessibility & contrast

On white

9.52
#21418D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#21418D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21418D
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21418D#FFFFFF#000000##FFFFFF
##21418D1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4B90
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #21418d;
/* rgb */ color: rgb(33, 65, 141);
/* oklch */ color: oklch(39.8% 0.132 264.1);
Tailwind
colors: {
  custom: {
    50: '#6d75af',
    500: '#21418d',
    950: '#000000',
  },
}
SCSS
$custom: #21418d;
$custom-light: #6d75af;
$custom-dark: #000000;
JSON
{
  "hex": "#21418d",
  "rgb": {
    "r": 33,
    "g": 65,
    "b": 141
  },
  "hsl": {
    "h": 222.222,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39797,
    "c": 0.13204,
    "h": 264.1
  },
  "luminance": 0.06027
}

Semantic roles & 50–950 ramp

primary
#21418D
secondary
#BA9B50
accent
#B543E5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #21418D

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

Preview Lab → · Contrast checker → · Palette generator →

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