#405FC5#405FC5

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

Color values

HEX#405FC5
RGBrgb(64, 95, 197)
HSLhsl(226, 53%, 51%)
HSVhsv(226, 68%, 77%)
CMYKcmyk(67.5%, 51.8%, 0%, 22.7%)
CIE-LABlab(43.22, 22.43, -56.72)
CIE-LCHlch(43.22, 60.99, 291.58°)
OKLaboklab(51.87% -0.0066 -0.1629)
OKLCHoklch(51.87% 0.163 267.7)
XYZxyz(16.2811, 13.3041, 54.5224)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FC5 #C5A640
analogous
#40A1C5 #405FC5 #6340C5
triadic
#405FC5 #C5405F #5FC540
tetradic
#405FC5 #C540A1 #C5A640 #40C563
square
#405FC5 #C540A1 #C5A640 #40C563
split-complementary
#405FC5 #C56340 #A1C540
monochromatic
#20326A #2F4799 #405FC5 #6F86D3 #9EAEE2

Accessibility & contrast

On white

5.74
#405FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #405FC5
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FC5#FFFFFF#000000##FFFFFF
##405FC51.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F6CC9
Deuteranopia (green-blind)
#0060C3
Tritanopia (blue-blind)
#007789
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #405fc5;
/* rgb */ color: rgb(64, 95, 197);
/* oklch */ color: oklch(51.9% 0.163 267.7);
Tailwind
colors: {
  custom: {
    50: '#848cd7',
    500: '#405fc5',
    950: '#000000',
  },
}
SCSS
$custom: #405fc5;
$custom-light: #848cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#405fc5",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 197
  },
  "hsl": {
    "h": 226.015,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51872,
    "c": 0.16303,
    "h": 267.7
  },
  "luminance": 0.13306
}

Semantic roles & 50–950 ramp

primary
#405FC5
secondary
#CEC093
accent
#BB4BDD
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83

Preview Lab

Preview with #405FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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