#405EC9#405EC9

#405EC9 is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.0% C 0.170 H 268.2°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#405EC9
RGBrgb(64, 94, 201)
HSLhsl(227, 56%, 52%)
HSVhsv(227, 68%, 79%)
CMYKcmyk(68.2%, 53.2%, 0%, 21.2%)
CIE-LABlab(43.23, 24.51, -59.01)
CIE-LCHlch(43.23, 63.90, 292.55°)
OKLaboklab(51.97% -0.0054 -0.1697)
OKLCHoklch(51.97% 0.17 268.2)
XYZxyz(16.6560, 13.3108, 56.9385)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EC9 #C9AB40
analogous
#40A3C9 #405EC9 #6740C9
triadic
#405EC9 #C9405E #5EC940
tetradic
#405EC9 #C940A3 #C9AB40 #40C967
square
#405EC9 #C940A3 #C9AB40 #40C967
split-complementary
#405EC9 #C96740 #A3C940
monochromatic
#1F316F #2D469F #405EC9 #7086D6 #9FAEE4

Accessibility & contrast

On white

5.73
#405EC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#405EC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EC9
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EC9#FFFFFF#000000##FFFFFF
##405EC91.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#126DCD
Deuteranopia (green-blind)
#0060C7
Tritanopia (blue-blind)
#00788A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #405ec9;
/* rgb */ color: rgb(64, 94, 201);
/* oklch */ color: oklch(52.0% 0.170 268.2);
Tailwind
colors: {
  custom: {
    50: '#848bda',
    500: '#405ec9',
    950: '#000000',
  },
}
SCSS
$custom: #405ec9;
$custom-light: #848bda;
$custom-dark: #000000;
JSON
{
  "hex": "#405ec9",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 201
  },
  "hsl": {
    "h": 226.861,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.51967,
    "c": 0.16975,
    "h": 268.2
  },
  "luminance": 0.13312
}

Semantic roles & 50–950 ramp

primary
#405EC9
secondary
#D0C394
accent
#BE49DF
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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