#405ED3#405ED3

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

Color values

HEX#405ED3
RGBrgb(64, 94, 211)
HSLhsl(228, 63%, 54%)
HSVhsv(228, 70%, 83%)
CMYKcmyk(69.7%, 55.5%, 0%, 17.3%)
CIE-LABlab(43.94, 28.08, -63.61)
CIE-LCHlch(43.94, 69.53, 293.82°)
OKLaboklab(52.73% -0.0048 -0.1832)
OKLCHoklch(52.73% 0.183 268.5)
XYZxyz(17.8709, 13.7968, 63.3366)
Luminance0.1380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405ED3 #D3B540
analogous
#40A8D3 #405ED3 #6C40D3
triadic
#405ED3 #D3405E #5ED340
tetradic
#405ED3 #D340A8 #D3B540 #40D36C
square
#405ED3 #D340A8 #D3B540 #40D36C
split-complementary
#405ED3 #D36C40 #A8D340
monochromatic
#1D307C #2843AE #405ED3 #7288DE #A3B2EA

Accessibility & contrast

On white

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

On black

3.76
#405ED3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##405ED3#FFFFFF#000000##FFFFFF
##405ED31.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #405ed3;
/* rgb */ color: rgb(64, 94, 211);
/* oklch */ color: oklch(52.7% 0.183 268.5);
Tailwind
colors: {
  custom: {
    50: '#868be1',
    500: '#405ed3',
    950: '#000000',
  },
}
SCSS
$custom: #405ed3;
$custom-light: #868be1;
$custom-dark: #000000;
JSON
{
  "hex": "#405ed3",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 211
  },
  "hsl": {
    "h": 227.755,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52728,
    "c": 0.18323,
    "h": 268.5
  },
  "luminance": 0.13799
}

Semantic roles & 50–950 ramp

primary
#405ED3
secondary
#D7CA98
accent
#C442E6
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0D0B15
muted
#7D7C83

Preview Lab

Preview with #405ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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