#405BD9#405BD9

#405BD9 is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.6% C 0.195 H 269.3°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#405BD9
RGBrgb(64, 91, 217)
HSLhsl(229, 67%, 55%)
HSVhsv(229, 71%, 85%)
CMYKcmyk(70.5%, 58.1%, 0%, 14.9%)
CIE-LABlab(43.62, 32.11, -67.55)
CIE-LCHlch(43.62, 74.80, 295.43°)
OKLaboklab(52.63% -0.0023 -0.1948)
OKLCHoklch(52.63% 0.195 269.3)
XYZxyz(18.3755, 13.5801, 67.2850)
Luminance0.1358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BD9 #D9BE40
analogous
#40A7D9 #405BD9 #7240D9
triadic
#405BD9 #D9405B #5BD940
tetradic
#405BD9 #D940A7 #D9BE40 #40D972
square
#405BD9 #D940A7 #D9BE40 #40D972
split-complementary
#405BD9 #D97240 #A7D940
monochromatic
#1A2D84 #243EB7 #405BD9 #7387E3 #A6B3ED

Accessibility & contrast

On white

5.65
#405BD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#405BD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BD9
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BD9#FFFFFF#000000##FFFFFF
##405BD91.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDD
Deuteranopia (green-blind)
#0060D7
Tritanopia (blue-blind)
#007A91
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #405bd9;
/* rgb */ color: rgb(64, 91, 217);
/* oklch */ color: oklch(52.6% 0.195 269.3);
Tailwind
colors: {
  custom: {
    50: '#8889e6',
    500: '#405bd9',
    950: '#000000',
  },
}
SCSS
$custom: #405bd9;
$custom-light: #8889e6;
$custom-dark: #000000;
JSON
{
  "hex": "#405bd9",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 217
  },
  "hsl": {
    "h": 229.412,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.52632,
    "c": 0.19481,
    "h": 269.3
  },
  "luminance": 0.13582
}

Semantic roles & 50–950 ramp

primary
#405BD9
secondary
#DACF9A
accent
#CB3EEA
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #405BD9

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

Preview Lab → · Contrast checker → · Palette generator →

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