#21418A#21418A

#21418A is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.6% C 0.128 H 263.7°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#21418A
RGBrgb(33, 65, 138)
HSLhsl(222, 61%, 34%)
HSVhsv(222, 76%, 54%)
CMYKcmyk(76.1%, 52.9%, 0%, 45.9%)
CIE-LABlab(29.26, 15.54, -44.13)
CIE-LCHlch(29.26, 46.79, 289.40°)
OKLaboklab(39.56% -0.0139 -0.127)
OKLCHoklch(39.56% 0.128 263.7)
XYZxyz(7.1033, 5.9381, 24.8116)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21418A #8A6A21
analogous
#21758A #21418A #35218A
triadic
#21418A #8A2141 #418A21
tetradic
#21418A #8A2175 #8A6A21 #218A35
square
#21418A #8A2175 #8A6A21 #218A35
split-complementary
#21418A #8A3521 #758A21
monochromatic
#091227 #152A59 #21418A #2D58BB #5079D5

Accessibility & contrast

On white

9.60
#21418A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21418A
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21418A#FFFFFF#000000##FFFFFF
##21418A1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124A8D
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #21418a;
/* rgb */ color: rgb(33, 65, 138);
/* oklch */ color: oklch(39.6% 0.128 263.7);
Tailwind
colors: {
  custom: {
    50: '#6c75ad',
    500: '#21418a',
    950: '#000000',
  },
}
SCSS
$custom: #21418a;
$custom-light: #6c75ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21418a",
  "rgb": {
    "r": 33,
    "g": 65,
    "b": 138
  },
  "hsl": {
    "h": 221.714,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39557,
    "c": 0.12772,
    "h": 263.7
  },
  "luminance": 0.05939
}

Semantic roles & 50–950 ramp

primary
#21418A
secondary
#B9984E
accent
#B343E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #21418A

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

Preview Lab → · Contrast checker → · Palette generator →

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