#405DB8#405DB8

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

Color values

HEX#405DB8
RGBrgb(64, 93, 184)
HSLhsl(226, 48%, 49%)
HSVhsv(226, 65%, 72%)
CMYKcmyk(65.2%, 49.5%, 0%, 27.8%)
CIE-LABlab(41.81, 19.07, -51.43)
CIE-LCHlch(41.81, 54.85, 290.34°)
OKLaboklab(50.53% -0.0062 -0.1473)
OKLCHoklch(50.53% 0.147 267.6)
XYZxyz(14.6775, 12.3780, 46.9538)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DB8 #B89B40
analogous
#4099B8 #405DB8 #5F40B8
triadic
#405DB8 #B8405D #5DB840
tetradic
#405DB8 #B84099 #B89B40 #40B85F
square
#405DB8 #B84099 #B89B40 #40B85F
split-complementary
#405DB8 #B85F40 #99B840
monochromatic
#202F5D #30468B #405DB8 #6A81CB #97A8DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##405DB8#FFFFFF#000000##FFFFFF
##405DB81.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)
#2C68BB
Deuteranopia (green-blind)
#0C5EB6
Tritanopia (blue-blind)
#007282
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405db8;
/* rgb */ color: rgb(64, 93, 184);
/* oklch */ color: oklch(50.5% 0.147 267.6);
Tailwind
colors: {
  custom: {
    50: '#818ace',
    500: '#405db8',
    950: '#000000',
  },
}
SCSS
$custom: #405db8;
$custom-light: #818ace;
$custom-dark: #000000;
JSON
{
  "hex": "#405db8",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 184
  },
  "hsl": {
    "h": 225.5,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50527,
    "c": 0.14748,
    "h": 267.6
  },
  "luminance": 0.12379
}

Semantic roles & 50–950 ramp

primary
#405DB8
secondary
#C7B98D
accent
#B750D8
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #405DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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