#405EC0#405EC0

#405EC0 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.3% C 0.157 H 267.7°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#405EC0
RGBrgb(64, 94, 192)
HSLhsl(226, 50%, 50%)
HSVhsv(226, 67%, 75%)
CMYKcmyk(66.7%, 51%, 0%, 24.7%)
CIE-LABlab(42.61, 21.29, -54.80)
CIE-LCHlch(42.61, 58.79, 291.23°)
OKLaboklab(51.3% -0.0062 -0.1573)
OKLCHoklch(51.3% 0.157 267.7)
XYZxyz(15.6282, 12.8997, 51.5252)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EC0 #C0A240
analogous
#409EC0 #405EC0 #6240C0
triadic
#405EC0 #C0405E #5EC040
tetradic
#405EC0 #C0409E #C0A240 #40C062
square
#405EC0 #C0409E #C0A240 #40C062
split-complementary
#405EC0 #C06240 #9EC040
monochromatic
#213164 #304792 #405EC0 #6E85CF #9CACDE

Accessibility & contrast

On white

5.87
#405EC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#405EC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EC0
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EC0#FFFFFF#000000##FFFFFF
##405EC01.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#246BC4
Deuteranopia (green-blind)
#005FBE
Tritanopia (blue-blind)
#007586
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #405ec0;
/* rgb */ color: rgb(64, 94, 192);
/* oklch */ color: oklch(51.3% 0.157 267.7);
Tailwind
colors: {
  custom: {
    50: '#838bd4',
    500: '#405ec0',
    950: '#000000',
  },
}
SCSS
$custom: #405ec0;
$custom-light: #838bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#405ec0",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 192
  },
  "hsl": {
    "h": 225.938,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51304,
    "c": 0.15738,
    "h": 267.7
  },
  "luminance": 0.12901
}

Semantic roles & 50–950 ramp

primary
#405EC0
secondary
#CBBD91
accent
#B94EDA
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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