#405EC8#405EC8

#405EC8 is a mid, vivid blue. Relative luminance 0.133; OKLCH L 51.9% C 0.168 H 268.1°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#405EC8
RGBrgb(64, 94, 200)
HSLhsl(227, 55%, 52%)
HSVhsv(227, 68%, 78%)
CMYKcmyk(68%, 53%, 0%, 21.6%)
CIE-LABlab(43.16, 24.15, -58.55)
CIE-LCHlch(43.16, 63.33, 292.41°)
OKLaboklab(51.89% -0.0055 -0.1683)
OKLCHoklch(51.89% 0.168 268.1)
XYZxyz(16.5388, 13.2639, 56.3210)
Luminance0.1327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EC8 #C8AA40
analogous
#40A2C8 #405EC8 #6640C8
triadic
#405EC8 #C8405E #5EC840
tetradic
#405EC8 #C840A2 #C8AA40 #40C866
square
#405EC8 #C840A2 #C8AA40 #40C866
split-complementary
#405EC8 #C86640 #A2C840
monochromatic
#20316E #2D469D #405EC8 #7086D6 #9FAEE3

Accessibility & contrast

On white

5.75
#405EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#405EC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EC8
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EC8#FFFFFF#000000##FFFFFF
##405EC81.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#156CCC
Deuteranopia (green-blind)
#0060C6
Tritanopia (blue-blind)
#00778A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #405ec8;
/* rgb */ color: rgb(64, 94, 200);
/* oklch */ color: oklch(51.9% 0.168 268.1);
Tailwind
colors: {
  custom: {
    50: '#848bd9',
    500: '#405ec8',
    950: '#000000',
  },
}
SCSS
$custom: #405ec8;
$custom-light: #848bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#405ec8",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 200
  },
  "hsl": {
    "h": 226.765,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.51892,
    "c": 0.16838,
    "h": 268.1
  },
  "luminance": 0.13266
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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