#405CD4#405CD4

#405CD4 is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.4% C 0.187 H 269.0°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#405CD4
RGBrgb(64, 92, 212)
HSLhsl(229, 63%, 54%)
HSVhsv(229, 70%, 83%)
CMYKcmyk(69.8%, 56.6%, 0%, 16.9%)
CIE-LABlab(43.50, 29.71, -64.89)
CIE-LCHlch(43.50, 71.37, 294.60°)
OKLaboklab(52.42% -0.0032 -0.187)
OKLCHoklch(52.42% 0.187 269)
XYZxyz(17.8211, 13.4960, 63.9404)
Luminance0.1350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CD4 #D4B840
analogous
#40A6D4 #405CD4 #6E40D4
triadic
#405CD4 #D4405C #5CD440
tetradic
#405CD4 #D440A6 #D4B840 #40D46E
square
#405CD4 #D440A6 #D4B840 #40D46E
split-complementary
#405CD4 #D46E40 #A6D440
monochromatic
#1C2F7D #2741AF #405CD4 #7287DF #A4B1EA

Accessibility & contrast

On white

5.68
#405CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#405CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CD4
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CD4#FFFFFF#000000##FFFFFF
##405CD41.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #405cd4;
/* rgb */ color: rgb(64, 92, 212);
/* oklch */ color: oklch(52.4% 0.187 269.0);
Tailwind
colors: {
  custom: {
    50: '#8789e2',
    500: '#405cd4',
    950: '#000000',
  },
}
SCSS
$custom: #405cd4;
$custom-light: #8789e2;
$custom-dark: #000000;
JSON
{
  "hex": "#405cd4",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 212
  },
  "hsl": {
    "h": 228.649,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52422,
    "c": 0.18701,
    "h": 269
  },
  "luminance": 0.13498
}

Semantic roles & 50–950 ramp

primary
#405CD4
secondary
#D7CB98
accent
#C742E6
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0B15
muted
#7E7C84

Preview Lab

Preview with #405CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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