#405DC9#405DC9

#405DC9 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.8% C 0.171 H 268.5°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#405DC9
RGBrgb(64, 93, 201)
HSLhsl(227, 56%, 52%)
HSVhsv(227, 68%, 79%)
CMYKcmyk(68.2%, 53.7%, 0%, 21.2%)
CIE-LABlab(42.96, 25.15, -59.44)
CIE-LCHlch(42.96, 64.54, 292.93°)
OKLaboklab(51.77% -0.0046 -0.1709)
OKLCHoklch(51.77% 0.171 268.5)
XYZxyz(16.5677, 13.1341, 56.9090)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DC9 #C9AC40
analogous
#40A2C9 #405DC9 #6840C9
triadic
#405DC9 #C9405D #5DC940
tetradic
#405DC9 #C940A2 #C9AC40 #40C968
square
#405DC9 #C940A2 #C9AC40 #40C968
split-complementary
#405DC9 #C96840 #A2C940
monochromatic
#1F306F #2D459F #405DC9 #7085D6 #9FAEE4

Accessibility & contrast

On white

5.79
#405DC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#405DC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DC9
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DC9#FFFFFF#000000##FFFFFF
##405DC91.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B6CCD
Deuteranopia (green-blind)
#005FC7
Tritanopia (blue-blind)
#00778A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #405dc9;
/* rgb */ color: rgb(64, 93, 201);
/* oklch */ color: oklch(51.8% 0.171 268.5);
Tailwind
colors: {
  custom: {
    50: '#858ada',
    500: '#405dc9',
    950: '#000000',
  },
}
SCSS
$custom: #405dc9;
$custom-light: #858ada;
$custom-dark: #000000;
JSON
{
  "hex": "#405dc9",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 201
  },
  "hsl": {
    "h": 227.299,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.51768,
    "c": 0.17099,
    "h": 268.5
  },
  "luminance": 0.13136
}

Semantic roles & 50–950 ramp

primary
#405DC9
secondary
#D0C494
accent
#BF49DF
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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