#405BC7#405BC7

#405BC7 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.2% C 0.171 H 269.0°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#405BC7
RGBrgb(64, 91, 199)
HSLhsl(228, 55%, 52%)
HSVhsv(228, 68%, 78%)
CMYKcmyk(67.8%, 54.3%, 0%, 22%)
CIE-LABlab(42.30, 25.71, -59.36)
CIE-LCHlch(42.30, 64.69, 293.42°)
OKLaboklab(51.22% -0.003 -0.1707)
OKLCHoklch(51.22% 0.171 269)
XYZxyz(16.1607, 12.6941, 55.6203)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BC7 #C7AC40
analogous
#409FC7 #405BC7 #6940C7
triadic
#405BC7 #C7405B #5BC740
tetradic
#405BC7 #C7409F #C7AC40 #40C769
square
#405BC7 #C7409F #C7AC40 #40C769
split-complementary
#405BC7 #C76940 #9FC740
monochromatic
#202F6D #2E449C #405BC7 #6F84D5 #9FACE3

Accessibility & contrast

On white

5.93
#405BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#405BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BC7
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BC7#FFFFFF#000000##FFFFFF
##405BC71.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#036ACB
Deuteranopia (green-blind)
#005EC5
Tritanopia (blue-blind)
#007588
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405bc7;
/* rgb */ color: rgb(64, 91, 199);
/* oklch */ color: oklch(51.2% 0.171 269.0);
Tailwind
colors: {
  custom: {
    50: '#8489d9',
    500: '#405bc7',
    950: '#000000',
  },
}
SCSS
$custom: #405bc7;
$custom-light: #8489d9;
$custom-dark: #000000;
JSON
{
  "hex": "#405bc7",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 199
  },
  "hsl": {
    "h": 228,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51222,
    "c": 0.17076,
    "h": 269
  },
  "luminance": 0.12696
}

Semantic roles & 50–950 ramp

primary
#405BC7
secondary
#CFC394
accent
#C04ADE
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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