#405DD9#405DD9

#405DD9 is a mid, vivid blue. Relative luminance 0.139; OKLCH L 53.0% C 0.192 H 268.9°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#405DD9
RGBrgb(64, 93, 217)
HSLhsl(229, 67%, 55%)
HSVhsv(229, 71%, 85%)
CMYKcmyk(70.5%, 57.1%, 0%, 14.9%)
CIE-LABlab(44.13, 30.85, -66.73)
CIE-LCHlch(44.13, 73.52, 294.81°)
OKLaboklab(53.01% -0.0038 -0.1924)
OKLCHoklch(53.01% 0.192 268.9)
XYZxyz(18.5488, 13.9266, 67.3427)
Luminance0.1393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DD9 #D9BC40
analogous
#40AAD9 #405DD9 #6F40D9
triadic
#405DD9 #D9405D #5DD940
tetradic
#405DD9 #D940AA #D9BC40 #40D96F
square
#405DD9 #D940AA #D9BC40 #40D96F
split-complementary
#405DD9 #D96F40 #AAD940
monochromatic
#1A2E84 #2440B7 #405DD9 #7388E3 #A6B4ED

Accessibility & contrast

On white

5.55
#405DD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#405DD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DD9
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DD9#FFFFFF#000000##FFFFFF
##405DD91.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DD
Deuteranopia (green-blind)
#0062D7
Tritanopia (blue-blind)
#007C92
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #405dd9;
/* rgb */ color: rgb(64, 93, 217);
/* oklch */ color: oklch(53.0% 0.192 268.9);
Tailwind
colors: {
  custom: {
    50: '#888ae6',
    500: '#405dd9',
    950: '#000000',
  },
}
SCSS
$custom: #405dd9;
$custom-light: #888ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#405dd9",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 217
  },
  "hsl": {
    "h": 228.627,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.53008,
    "c": 0.19241,
    "h": 268.9
  },
  "luminance": 0.13928
}

Semantic roles & 50–950 ramp

primary
#405DD9
secondary
#DACE9A
accent
#C93EEA
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #405DD9

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

Preview Lab → · Contrast checker → · Palette generator →

#405DD9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva