#405FCD#405FCD

#405FCD is a mid, vivid blue. Relative luminance 0.137; OKLCH L 52.5% C 0.174 H 268.0°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#405FCD
RGBrgb(64, 95, 205)
HSLhsl(227, 59%, 53%)
HSVhsv(227, 69%, 80%)
CMYKcmyk(68.8%, 53.7%, 0%, 19.6%)
CIE-LABlab(43.77, 25.30, -60.44)
CIE-LCHlch(43.77, 65.52, 292.72°)
OKLaboklab(52.47% -0.006 -0.1738)
OKLCHoklch(52.47% 0.174 268)
XYZxyz(17.2222, 13.6805, 59.4787)
Luminance0.1368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FCD #CDAE40
analogous
#40A5CD #405FCD #6840CD
triadic
#405FCD #CD405F #5FCD40
tetradic
#405FCD #CD40A5 #CDAE40 #40CD68
square
#405FCD #CD40A5 #CDAE40 #40CD68
split-complementary
#405FCD #CD6840 #A5CD40
monochromatic
#1E3174 #2B46A5 #405FCD #7188DA #A1B0E6

Accessibility & contrast

On white

5.62
#405FCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#405FCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FCD
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FCD#FFFFFF#000000##FFFFFF
##405FCD1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B6ED1
Deuteranopia (green-blind)
#0061CB
Tritanopia (blue-blind)
#00798D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #405fcd;
/* rgb */ color: rgb(64, 95, 205);
/* oklch */ color: oklch(52.5% 0.174 268.0);
Tailwind
colors: {
  custom: {
    50: '#858cdd',
    500: '#405fcd',
    950: '#000000',
  },
}
SCSS
$custom: #405fcd;
$custom-light: #858cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#405fcd",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 205
  },
  "hsl": {
    "h": 226.809,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.52466,
    "c": 0.17394,
    "h": 268
  },
  "luminance": 0.13682
}

Semantic roles & 50–950 ramp

primary
#405FCD
secondary
#D3C696
accent
#BF46E2
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #405FCD

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

Preview Lab → · Contrast checker → · Palette generator →

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