#405DD6#405DD6

#405DD6 is a mid, vivid blue. Relative luminance 0.138; OKLCH L 52.8% C 0.188 H 268.8°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#405DD6
RGBrgb(64, 93, 214)
HSLhsl(228, 65%, 55%)
HSVhsv(228, 70%, 84%)
CMYKcmyk(70.1%, 56.5%, 0%, 16.1%)
CIE-LABlab(43.90, 29.78, -65.38)
CIE-LCHlch(43.90, 71.85, 294.49°)
OKLaboklab(52.77% -0.0039 -0.1884)
OKLCHoklch(52.77% 0.188 268.8)
XYZxyz(18.1621, 13.7719, 65.3064)
Luminance0.1377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DD6 #D6B940
analogous
#40A8D6 #405DD6 #6E40D6
triadic
#405DD6 #D6405D #5DD640
tetradic
#405DD6 #D640A8 #D6B940 #40D66E
square
#405DD6 #D640A8 #D6B940 #40D66E
split-complementary
#405DD6 #D66E40 #A8D640
monochromatic
#1B2F80 #2641B2 #405DD6 #7288E1 #A5B2EC

Accessibility & contrast

On white

5.59
#405DD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#405DD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DD6
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DD6#FFFFFF#000000##FFFFFF
##405DD61.005.593.755.59
#FFFFFF5.591.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDA
Deuteranopia (green-blind)
#0061D4
Tritanopia (blue-blind)
#007B90
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #405dd6;
/* rgb */ color: rgb(64, 93, 214);
/* oklch */ color: oklch(52.8% 0.188 268.8);
Tailwind
colors: {
  custom: {
    50: '#878ae3',
    500: '#405dd6',
    950: '#000000',
  },
}
SCSS
$custom: #405dd6;
$custom-light: #878ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#405dd6",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 214
  },
  "hsl": {
    "h": 228.4,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.5277,
    "c": 0.18845,
    "h": 268.8
  },
  "luminance": 0.13774
}

Semantic roles & 50–950 ramp

primary
#405DD6
secondary
#D9CC99
accent
#C740E8
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #405DD6

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

Preview Lab → · Contrast checker → · Palette generator →

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