#21418E#21418E

#21418E is a dark, vivid blue. Relative luminance 0.061; OKLCH L 39.9% C 0.133 H 264.2°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#21418E
RGBrgb(33, 65, 142)
HSLhsl(222, 62%, 34%)
HSVhsv(222, 77%, 56%)
CMYKcmyk(76.8%, 54.2%, 0%, 44.3%)
CIE-LABlab(29.55, 17.13, -46.12)
CIE-LCHlch(29.55, 49.20, 290.38°)
OKLaboklab(39.88% -0.0135 -0.1328)
OKLCHoklch(39.88% 0.133 264.2)
XYZxyz(7.3982, 6.0561, 26.3650)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21418E #8E6E21
analogous
#21788E #21418E #37218E
triadic
#21418E #8E2141 #418E21
tetradic
#21418E #8E2178 #8E6E21 #218E37
square
#21418E #8E2178 #8E6E21 #218E37
split-complementary
#21418E #8E3721 #788E21
monochromatic
#0A142B #152A5C #21418E #2D58C0 #5279D7

Accessibility & contrast

On white

9.50
#21418E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21418E
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21418E#FFFFFF#000000##FFFFFF
##21418E1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084B91
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #21418e;
/* rgb */ color: rgb(33, 65, 142);
/* oklch */ color: oklch(39.9% 0.133 264.2);
Tailwind
colors: {
  custom: {
    50: '#6d75b0',
    500: '#21418e',
    950: '#000000',
  },
}
SCSS
$custom: #21418e;
$custom-light: #6d75b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21418e",
  "rgb": {
    "r": 33,
    "g": 65,
    "b": 142
  },
  "hsl": {
    "h": 222.385,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39877,
    "c": 0.13348,
    "h": 264.2
  },
  "luminance": 0.06057
}

Semantic roles & 50–950 ramp

primary
#21418E
secondary
#BA9B50
accent
#B642E5
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #21418E

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

Preview Lab → · Contrast checker → · Palette generator →

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