#405EC6#405EC6

#405EC6 is a mid, vivid blue. Relative luminance 0.132; OKLCH L 51.7% C 0.166 H 268.0°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#405EC6
RGBrgb(64, 94, 198)
HSLhsl(227, 54%, 51%)
HSVhsv(227, 68%, 78%)
CMYKcmyk(67.7%, 52.5%, 0%, 22.4%)
CIE-LABlab(43.02, 23.43, -57.62)
CIE-LCHlch(43.02, 62.20, 292.13°)
OKLaboklab(51.74% -0.0057 -0.1655)
OKLCHoklch(51.74% 0.166 268)
XYZxyz(16.3066, 13.1710, 55.0980)
Luminance0.1317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EC6 #C6A840
analogous
#40A1C6 #405EC6 #6540C6
triadic
#405EC6 #C6405E #5EC640
tetradic
#405EC6 #C640A1 #C6A840 #40C665
square
#405EC6 #C640A1 #C6A840 #40C665
split-complementary
#405EC6 #C66540 #A1C640
monochromatic
#20316C #2E469B #405EC6 #6F86D4 #9EADE2

Accessibility & contrast

On white

5.78
#405EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#405EC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EC6
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EC6#FFFFFF#000000##FFFFFF
##405EC61.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196CCA
Deuteranopia (green-blind)
#0060C4
Tritanopia (blue-blind)
#007789
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #405ec6;
/* rgb */ color: rgb(64, 94, 198);
/* oklch */ color: oklch(51.7% 0.166 268.0);
Tailwind
colors: {
  custom: {
    50: '#848bd8',
    500: '#405ec6',
    950: '#000000',
  },
}
SCSS
$custom: #405ec6;
$custom-light: #848bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#405ec6",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 198
  },
  "hsl": {
    "h": 226.567,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51744,
    "c": 0.16565,
    "h": 268
  },
  "luminance": 0.13173
}

Semantic roles & 50–950 ramp

primary
#405EC6
secondary
#CEC193
accent
#BC4ADD
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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