#21418F#21418F

#21418F is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.0% C 0.135 H 264.3°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#21418F
RGBrgb(33, 65, 143)
HSLhsl(223, 63%, 35%)
HSVhsv(223, 77%, 56%)
CMYKcmyk(76.9%, 54.5%, 0%, 43.9%)
CIE-LABlab(29.63, 17.53, -46.61)
CIE-LCHlch(29.63, 49.80, 290.61°)
OKLaboklab(39.96% -0.0134 -0.1342)
OKLCHoklch(39.96% 0.135 264.3)
XYZxyz(7.4737, 6.0863, 26.7622)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21418F #8F6F21
analogous
#21788F #21418F #38218F
triadic
#21418F #8F2141 #418F21
tetradic
#21418F #8F2178 #8F6F21 #218F38
square
#21418F #8F2178 #8F6F21 #218F38
split-complementary
#21418F #8F3821 #788F21
monochromatic
#0A142C #162A5D #21418F #2C58C1 #537AD7

Accessibility & contrast

On white

9.47
#21418F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#21418F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21418F
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21418F#FFFFFF#000000##FFFFFF
##21418F1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064B92
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #21418f;
/* rgb */ color: rgb(33, 65, 143);
/* oklch */ color: oklch(40.0% 0.135 264.3);
Tailwind
colors: {
  custom: {
    50: '#6d75b0',
    500: '#21418f',
    950: '#000000',
  },
}
SCSS
$custom: #21418f;
$custom-light: #6d75b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21418f",
  "rgb": {
    "r": 33,
    "g": 65,
    "b": 143
  },
  "hsl": {
    "h": 222.545,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39959,
    "c": 0.13491,
    "h": 264.3
  },
  "luminance": 0.06087
}

Semantic roles & 50–950 ramp

primary
#21418F
secondary
#BB9C51
accent
#B642E6
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080811
muted
#7B7B80

Preview Lab

Preview with #21418F

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

Preview Lab → · Contrast checker → · Palette generator →

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