#405DB9#405DB9

#405DB9 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.6% C 0.149 H 267.7°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#405DB9
RGBrgb(64, 93, 185)
HSLhsl(226, 49%, 49%)
HSVhsv(226, 65%, 73%)
CMYKcmyk(65.4%, 49.7%, 0%, 27.5%)
CIE-LABlab(41.88, 19.42, -51.91)
CIE-LCHlch(41.88, 55.42, 290.52°)
OKLaboklab(50.6% -0.0061 -0.1488)
OKLCHoklch(50.6% 0.149 267.7)
XYZxyz(14.7827, 12.4201, 47.5078)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DB9 #B99C40
analogous
#409AB9 #405DB9 #6040B9
triadic
#405DB9 #B9405D #5DB940
tetradic
#405DB9 #B9409A #B99C40 #40B960
square
#405DB9 #B9409A #B99C40 #40B960
split-complementary
#405DB9 #B96040 #9AB940
monochromatic
#212F5E #30468C #405DB9 #6B82CC #98A8DB

Accessibility & contrast

On white

6.03
#405DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #405DB9
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DB9#FFFFFF#000000##FFFFFF
##405DB91.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A69BC
Deuteranopia (green-blind)
#085EB7
Tritanopia (blue-blind)
#007282
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405db9;
/* rgb */ color: rgb(64, 93, 185);
/* oklch */ color: oklch(50.6% 0.149 267.7);
Tailwind
colors: {
  custom: {
    50: '#818acf',
    500: '#405db9',
    950: '#000000',
  },
}
SCSS
$custom: #405db9;
$custom-light: #818acf;
$custom-dark: #000000;
JSON
{
  "hex": "#405db9",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 185
  },
  "hsl": {
    "h": 225.62,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50597,
    "c": 0.14888,
    "h": 267.7
  },
  "luminance": 0.12421
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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