#405BD4#405BD4

#405BD4 is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.2% C 0.188 H 269.3°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#405BD4
RGBrgb(64, 91, 212)
HSLhsl(229, 63%, 54%)
HSVhsv(229, 70%, 83%)
CMYKcmyk(69.8%, 57.1%, 0%, 16.9%)
CIE-LABlab(43.25, 30.34, -65.31)
CIE-LCHlch(43.25, 72.01, 294.92°)
OKLaboklab(52.23% -0.0024 -0.1882)
OKLCHoklch(52.23% 0.188 269.3)
XYZxyz(17.7350, 13.3239, 63.9117)
Luminance0.1333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BD4 #D4B940
analogous
#40A5D4 #405BD4 #6F40D4
triadic
#405BD4 #D4405B #5BD440
tetradic
#405BD4 #D440A5 #D4B940 #40D46F
square
#405BD4 #D440A5 #D4B940 #40D46F
split-complementary
#405BD4 #D46F40 #A5D440
monochromatic
#1C2E7D #2740AF #405BD4 #7286DF #A4B1EA

Accessibility & contrast

On white

5.73
#405BD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#405BD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BD4
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BD4#FFFFFF#000000##FFFFFF
##405BD41.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD8
Deuteranopia (green-blind)
#0060D2
Tritanopia (blue-blind)
#00798F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #405bd4;
/* rgb */ color: rgb(64, 91, 212);
/* oklch */ color: oklch(52.2% 0.188 269.3);
Tailwind
colors: {
  custom: {
    50: '#8789e2',
    500: '#405bd4',
    950: '#000000',
  },
}
SCSS
$custom: #405bd4;
$custom-light: #8789e2;
$custom-dark: #000000;
JSON
{
  "hex": "#405bd4",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 212
  },
  "hsl": {
    "h": 229.054,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52232,
    "c": 0.18823,
    "h": 269.3
  },
  "luminance": 0.13326
}

Semantic roles & 50–950 ramp

primary
#405BD4
secondary
#D7CC98
accent
#C842E6
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0B15
muted
#7E7C84

Preview Lab

Preview with #405BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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