#405AC0#405AC0

#405AC0 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.5% C 0.162 H 269.1°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#405AC0
RGBrgb(64, 90, 192)
HSLhsl(228, 50%, 50%)
HSVhsv(228, 67%, 75%)
CMYKcmyk(66.7%, 53.1%, 0%, 24.7%)
CIE-LABlab(41.54, 23.85, -56.53)
CIE-LCHlch(41.54, 61.35, 292.88°)
OKLaboklab(50.5% -0.0026 -0.1624)
OKLCHoklch(50.5% 0.162 269.1)
XYZxyz(15.2817, 12.2067, 51.4097)
Luminance0.1221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AC0 #C0A640
analogous
#409AC0 #405AC0 #6640C0
triadic
#405AC0 #C0405A #5AC040
tetradic
#405AC0 #C0409A #C0A640 #40C066
square
#405AC0 #C0409A #C0A640 #40C066
split-complementary
#405AC0 #C06640 #9AC040
monochromatic
#212F64 #304492 #405AC0 #6E82CF #9CAADE

Accessibility & contrast

On white

6.10
#405AC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#405AC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405AC0
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AC0#FFFFFF#000000##FFFFFF
##405AC01.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1568C4
Deuteranopia (green-blind)
#005CBE
Tritanopia (blue-blind)
#007284
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405ac0;
/* rgb */ color: rgb(64, 90, 192);
/* oklch */ color: oklch(50.5% 0.162 269.1);
Tailwind
colors: {
  custom: {
    50: '#8388d4',
    500: '#405ac0',
    950: '#000000',
  },
}
SCSS
$custom: #405ac0;
$custom-light: #8388d4;
$custom-dark: #000000;
JSON
{
  "hex": "#405ac0",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 192
  },
  "hsl": {
    "h": 227.813,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50496,
    "c": 0.16241,
    "h": 269.1
  },
  "luminance": 0.12208
}

Semantic roles & 50–950 ramp

primary
#405AC0
secondary
#CBBF91
accent
#BD4EDA
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405AC0

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

Preview Lab → · Contrast checker → · Palette generator →

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