#405ECD#405ECD

#405ECD is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.3% C 0.175 H 268.3°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#405ECD
RGBrgb(64, 94, 205)
HSLhsl(227, 59%, 53%)
HSVhsv(227, 69%, 80%)
CMYKcmyk(68.8%, 54.1%, 0%, 19.6%)
CIE-LABlab(43.51, 25.94, -60.86)
CIE-LCHlch(43.51, 66.16, 293.08°)
OKLaboklab(52.27% -0.0052 -0.1751)
OKLCHoklch(52.27% 0.175 268.3)
XYZxyz(17.1327, 13.5015, 59.4489)
Luminance0.1350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405ECD #CDAF40
analogous
#40A4CD #405ECD #6840CD
triadic
#405ECD #CD405E #5ECD40
tetradic
#405ECD #CD40A4 #CDAF40 #40CD68
square
#405ECD #CD40A4 #CDAF40 #40CD68
split-complementary
#405ECD #CD6840 #A4CD40
monochromatic
#1E3174 #2B45A5 #405ECD #7187DA #A1B0E6

Accessibility & contrast

On white

5.67
#405ECD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #405ECD
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405ECD#FFFFFF#000000##FFFFFF
##405ECD1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#026ED1
Deuteranopia (green-blind)
#0061CB
Tritanopia (blue-blind)
#00798C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #405ecd;
/* rgb */ color: rgb(64, 94, 205);
/* oklch */ color: oklch(52.3% 0.175 268.3);
Tailwind
colors: {
  custom: {
    50: '#858bdd',
    500: '#405ecd',
    950: '#000000',
  },
}
SCSS
$custom: #405ecd;
$custom-light: #858bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#405ecd",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 205
  },
  "hsl": {
    "h": 227.234,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.52268,
    "c": 0.17518,
    "h": 268.3
  },
  "luminance": 0.13503
}

Semantic roles & 50–950 ramp

primary
#405ECD
secondary
#D3C696
accent
#C146E2
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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