#405FCE#405FCE

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

Color values

HEX#405FCE
RGBrgb(64, 95, 206)
HSLhsl(227, 59%, 53%)
HSVhsv(227, 69%, 81%)
CMYKcmyk(68.9%, 53.9%, 0%, 19.2%)
CIE-LABlab(43.84, 25.66, -60.90)
CIE-LCHlch(43.84, 66.08, 292.85°)
OKLaboklab(52.54% -0.0059 -0.1752)
OKLCHoklch(52.54% 0.175 268.1)
XYZxyz(17.3433, 13.7289, 60.1165)
Luminance0.1373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FCE #CEAF40
analogous
#40A6CE #405FCE #6840CE
triadic
#405FCE #CE405F #5FCE40
tetradic
#405FCE #CE40A6 #CEAF40 #40CE68
square
#405FCE #CE40A6 #CEAF40 #40CE68
split-complementary
#405FCE #CE6840 #A6CE40
monochromatic
#1E3175 #2B46A6 #405FCE #7188DA #A1B1E7

Accessibility & contrast

On white

5.61
#405FCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #405FCE
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FCE#FFFFFF#000000##FFFFFF
##405FCE1.005.613.755.61
#FFFFFF5.611.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#066ED2
Deuteranopia (green-blind)
#0061CC
Tritanopia (blue-blind)
#007A8D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #405fce;
/* rgb */ color: rgb(64, 95, 206);
/* oklch */ color: oklch(52.5% 0.175 268.1);
Tailwind
colors: {
  custom: {
    50: '#858cde',
    500: '#405fce',
    950: '#000000',
  },
}
SCSS
$custom: #405fce;
$custom-light: #858cde;
$custom-dark: #000000;
JSON
{
  "hex": "#405fce",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 206
  },
  "hsl": {
    "h": 226.901,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52541,
    "c": 0.17529,
    "h": 268.1
  },
  "luminance": 0.13731
}

Semantic roles & 50–950 ramp

primary
#405FCE
secondary
#D4C696
accent
#C045E2
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #405FCE

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

Preview Lab → · Contrast checker → · Palette generator →

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