#405DB5#405DB5

#405DB5 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.3% C 0.143 H 267.4°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#405DB5
RGBrgb(64, 93, 181)
HSLhsl(225, 48%, 48%)
HSVhsv(225, 65%, 71%)
CMYKcmyk(64.6%, 48.6%, 0%, 29%)
CIE-LABlab(41.62, 18.00, -49.98)
CIE-LCHlch(41.62, 53.12, 289.80°)
OKLaboklab(50.32% -0.0065 -0.1431)
OKLCHoklch(50.32% 0.143 267.4)
XYZxyz(14.3663, 12.2536, 45.3152)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DB5 #B59840
analogous
#4097B5 #405DB5 #5D40B5
triadic
#405DB5 #B5405D #5DB540
tetradic
#405DB5 #B54097 #B59840 #40B55D
square
#405DB5 #B54097 #B59840 #40B55D
split-complementary
#405DB5 #B55D40 #97B540
monochromatic
#202F5B #304688 #405DB5 #6881CA #96A7DA

Accessibility & contrast

On white

6.09
#405DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#405DB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DB5
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DB5#FFFFFF#000000##FFFFFF
##405DB51.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F68B8
Deuteranopia (green-blind)
#155DB3
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405db5;
/* rgb */ color: rgb(64, 93, 181);
/* oklch */ color: oklch(50.3% 0.143 267.4);
Tailwind
colors: {
  custom: {
    50: '#818acc',
    500: '#405db5',
    950: '#000000',
  },
}
SCSS
$custom: #405db5;
$custom-light: #818acc;
$custom-dark: #000000;
JSON
{
  "hex": "#405db5",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 181
  },
  "hsl": {
    "h": 225.128,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50316,
    "c": 0.14325,
    "h": 267.4
  },
  "luminance": 0.12255
}

Semantic roles & 50–950 ramp

primary
#405DB5
secondary
#C5B78B
accent
#B650D7
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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