#405DC4#405DC4

#405DC4 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.4% C 0.164 H 268.3°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#405DC4
RGBrgb(64, 93, 196)
HSLhsl(227, 53%, 51%)
HSVhsv(227, 67%, 77%)
CMYKcmyk(67.3%, 52.6%, 0%, 23.1%)
CIE-LABlab(42.62, 23.36, -57.11)
CIE-LCHlch(42.62, 61.70, 292.24°)
OKLaboklab(51.4% -0.005 -0.1641)
OKLCHoklch(51.4% 0.164 268.3)
XYZxyz(15.9891, 12.9027, 53.8617)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DC4 #C4A740
analogous
#409FC4 #405DC4 #6540C4
triadic
#405DC4 #C4405D #5DC440
tetradic
#405DC4 #C4409F #C4A740 #40C465
square
#405DC4 #C4409F #C4A740 #40C465
split-complementary
#405DC4 #C46540 #9FC440
monochromatic
#203069 #2F4698 #405DC4 #6F85D2 #9EACE1

Accessibility & contrast

On white

5.86
#405DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#405DC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DC4
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DC4#FFFFFF#000000##FFFFFF
##405DC41.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196BC8
Deuteranopia (green-blind)
#005FC2
Tritanopia (blue-blind)
#007587
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #405dc4;
/* rgb */ color: rgb(64, 93, 196);
/* oklch */ color: oklch(51.4% 0.164 268.3);
Tailwind
colors: {
  custom: {
    50: '#848ad7',
    500: '#405dc4',
    950: '#000000',
  },
}
SCSS
$custom: #405dc4;
$custom-light: #848ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#405dc4",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 196
  },
  "hsl": {
    "h": 226.818,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51395,
    "c": 0.16415,
    "h": 268.3
  },
  "luminance": 0.12904
}

Semantic roles & 50–950 ramp

primary
#405DC4
secondary
#CDC093
accent
#BC4CDC
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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