#405FC7#405FC7

#405FC7 is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.0% C 0.166 H 267.8°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#405FC7
RGBrgb(64, 95, 199)
HSLhsl(226, 55%, 52%)
HSVhsv(226, 68%, 78%)
CMYKcmyk(67.8%, 52.3%, 0%, 22%)
CIE-LABlab(43.35, 23.15, -57.65)
CIE-LCHlch(43.35, 62.13, 291.88°)
OKLaboklab(52.02% -0.0065 -0.1656)
OKLCHoklch(52.02% 0.166 267.8)
XYZxyz(16.5118, 13.3963, 55.7373)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FC7 #C7A840
analogous
#40A3C7 #405FC7 #6540C7
triadic
#405FC7 #C7405F #5FC740
tetradic
#405FC7 #C740A3 #C7A840 #40C765
square
#405FC7 #C740A3 #C7A840 #40C765
split-complementary
#405FC7 #C76540 #A3C740
monochromatic
#20326D #2E479C #405FC7 #6F87D5 #9FAEE3

Accessibility & contrast

On white

5.71
#405FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#405FC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FC7
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FC7#FFFFFF#000000##FFFFFF
##405FC71.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B6DCB
Deuteranopia (green-blind)
#0061C5
Tritanopia (blue-blind)
#00788A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #405fc7;
/* rgb */ color: rgb(64, 95, 199);
/* oklch */ color: oklch(52.0% 0.166 267.8);
Tailwind
colors: {
  custom: {
    50: '#848cd9',
    500: '#405fc7',
    950: '#000000',
  },
}
SCSS
$custom: #405fc7;
$custom-light: #848cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#405fc7",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 199
  },
  "hsl": {
    "h": 226.222,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52018,
    "c": 0.16577,
    "h": 267.8
  },
  "luminance": 0.13398
}

Semantic roles & 50–950 ramp

primary
#405FC7
secondary
#CFC194
accent
#BC4ADE
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #405FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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