#21418C#21418C

#21418C is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.7% C 0.131 H 264.0°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#21418C
RGBrgb(33, 65, 140)
HSLhsl(222, 62%, 34%)
HSVhsv(222, 76%, 55%)
CMYKcmyk(76.4%, 53.6%, 0%, 45.1%)
CIE-LABlab(29.40, 16.34, -45.13)
CIE-LCHlch(29.40, 47.99, 289.90°)
OKLaboklab(39.72% -0.0137 -0.1299)
OKLCHoklch(39.72% 0.131 264)
XYZxyz(7.2494, 5.9966, 25.5812)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21418C #8C6C21
analogous
#21778C #21418C #37218C
triadic
#21418C #8C2141 #418C21
tetradic
#21418C #8C2177 #8C6C21 #218C37
square
#21418C #8C2177 #8C6C21 #218C37
split-complementary
#21418C #8C3721 #778C21
monochromatic
#0A1329 #152A5A #21418C #2D58BE #5179D6

Accessibility & contrast

On white

9.55
#21418C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#21418C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21418C
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21418C#FFFFFF#000000##FFFFFF
##21418C1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21418c;
/* rgb */ color: rgb(33, 65, 140);
/* oklch */ color: oklch(39.7% 0.131 264.0);
Tailwind
colors: {
  custom: {
    50: '#6c75ae',
    500: '#21418c',
    950: '#000000',
  },
}
SCSS
$custom: #21418c;
$custom-light: #6c75ae;
$custom-dark: #000000;
JSON
{
  "hex": "#21418c",
  "rgb": {
    "r": 33,
    "g": 65,
    "b": 140
  },
  "hsl": {
    "h": 222.056,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39716,
    "c": 0.1306,
    "h": 264
  },
  "luminance": 0.05997
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21418C

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

Preview Lab → · Contrast checker → · Palette generator →

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