#405DD3#405DD3

#405DD3 is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.5% C 0.184 H 268.8°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#405DD3
RGBrgb(64, 93, 211)
HSLhsl(228, 63%, 54%)
HSVhsv(228, 70%, 83%)
CMYKcmyk(69.7%, 55.9%, 0%, 17.3%)
CIE-LABlab(43.68, 28.72, -64.03)
CIE-LCHlch(43.68, 70.17, 294.16°)
OKLaboklab(52.54% -0.004 -0.1844)
OKLCHoklch(52.54% 0.184 268.8)
XYZxyz(17.7825, 13.6201, 63.3072)
Luminance0.1362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DD3 #D3B640
analogous
#40A7D3 #405DD3 #6D40D3
triadic
#405DD3 #D3405D #5DD340
tetradic
#405DD3 #D340A7 #D3B640 #40D36D
square
#405DD3 #D340A7 #D3B640 #40D36D
split-complementary
#405DD3 #D36D40 #A7D340
monochromatic
#1D2F7C #2842AE #405DD3 #7287DE #A3B1EA

Accessibility & contrast

On white

5.64
#405DD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#405DD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DD3
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DD3#FFFFFF#000000##FFFFFF
##405DD31.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED7
Deuteranopia (green-blind)
#0061D1
Tritanopia (blue-blind)
#007A8F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #405dd3;
/* rgb */ color: rgb(64, 93, 211);
/* oklch */ color: oklch(52.5% 0.184 268.8);
Tailwind
colors: {
  custom: {
    50: '#878ae1',
    500: '#405dd3',
    950: '#000000',
  },
}
SCSS
$custom: #405dd3;
$custom-light: #878ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#405dd3",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 211
  },
  "hsl": {
    "h": 228.163,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52535,
    "c": 0.18445,
    "h": 268.8
  },
  "luminance": 0.13622
}

Semantic roles & 50–950 ramp

primary
#405DD3
secondary
#D7CA98
accent
#C542E6
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #405DD3

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

Preview Lab → · Contrast checker → · Palette generator →

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