#405BC0#405BC0

#405BC0 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.7% C 0.161 H 268.8°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#405BC0
RGBrgb(64, 91, 192)
HSLhsl(227, 50%, 50%)
HSVhsv(227, 67%, 75%)
CMYKcmyk(66.7%, 52.6%, 0%, 24.7%)
CIE-LABlab(41.81, 23.21, -56.10)
CIE-LCHlch(41.81, 60.71, 292.48°)
OKLaboklab(50.7% -0.0035 -0.1611)
OKLCHoklch(50.7% 0.161 268.8)
XYZxyz(15.3666, 12.3765, 51.4380)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BC0 #C0A540
analogous
#409BC0 #405BC0 #6540C0
triadic
#405BC0 #C0405B #5BC040
tetradic
#405BC0 #C0409B #C0A540 #40C065
square
#405BC0 #C0409B #C0A540 #40C065
split-complementary
#405BC0 #C06540 #9BC040
monochromatic
#212F64 #304592 #405BC0 #6E83CF #9CAADE

Accessibility & contrast

On white

6.04
#405BC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#405BC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BC0
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BC0#FFFFFF#000000##FFFFFF
##405BC01.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1969C4
Deuteranopia (green-blind)
#005DBE
Tritanopia (blue-blind)
#007385
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405bc0;
/* rgb */ color: rgb(64, 91, 192);
/* oklch */ color: oklch(50.7% 0.161 268.8);
Tailwind
colors: {
  custom: {
    50: '#8389d4',
    500: '#405bc0',
    950: '#000000',
  },
}
SCSS
$custom: #405bc0;
$custom-light: #8389d4;
$custom-dark: #000000;
JSON
{
  "hex": "#405bc0",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 192
  },
  "hsl": {
    "h": 227.344,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50696,
    "c": 0.16116,
    "h": 268.8
  },
  "luminance": 0.12378
}

Semantic roles & 50–950 ramp

primary
#405BC0
secondary
#CBBE91
accent
#BC4EDA
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405BC0

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

Preview Lab → · Contrast checker → · Palette generator →

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