#405FC4#405FC4

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

Color values

HEX#405FC4
RGBrgb(64, 95, 196)
HSLhsl(226, 53%, 51%)
HSVhsv(226, 67%, 77%)
CMYKcmyk(67.3%, 51.5%, 0%, 23.1%)
CIE-LABlab(43.15, 22.08, -56.25)
CIE-LCHlch(43.15, 60.43, 291.43°)
OKLaboklab(51.8% -0.0067 -0.1615)
OKLCHoklch(51.8% 0.162 267.6)
XYZxyz(16.1669, 13.2584, 53.9210)
Luminance0.1326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FC4 #C4A540
analogous
#40A1C4 #405FC4 #6340C4
triadic
#405FC4 #C4405F #5FC440
tetradic
#405FC4 #C440A1 #C4A540 #40C463
square
#405FC4 #C440A1 #C4A540 #40C463
split-complementary
#405FC4 #C46340 #A1C440
monochromatic
#203269 #2F4898 #405FC4 #6F86D2 #9EADE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##405FC4#FFFFFF#000000##FFFFFF
##405FC41.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)
#216CC8
Deuteranopia (green-blind)
#0060C2
Tritanopia (blue-blind)
#007788
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #405fc4;
/* rgb */ color: rgb(64, 95, 196);
/* oklch */ color: oklch(51.8% 0.162 267.6);
Tailwind
colors: {
  custom: {
    50: '#838cd6',
    500: '#405fc4',
    950: '#000000',
  },
}
SCSS
$custom: #405fc4;
$custom-light: #838cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#405fc4",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 196
  },
  "hsl": {
    "h": 225.909,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51799,
    "c": 0.16165,
    "h": 267.6
  },
  "luminance": 0.1326
}

Semantic roles & 50–950 ramp

primary
#405FC4
secondary
#CDBF93
accent
#BA4CDC
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83

Preview Lab

Preview with #405FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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