#405DB1#405DB1

#405DB1 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.0% C 0.138 H 267.0°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#405DB1
RGBrgb(64, 93, 177)
HSLhsl(225, 47%, 47%)
HSVhsv(225, 64%, 69%)
CMYKcmyk(63.8%, 47.5%, 0%, 30.6%)
CIE-LABlab(41.36, 16.57, -48.05)
CIE-LCHlch(41.36, 50.82, 289.03°)
OKLaboklab(50.04% -0.0071 -0.1374)
OKLCHoklch(50.04% 0.138 267)
XYZxyz(13.9618, 12.0918, 43.1846)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DB1 #B19440
analogous
#4095B1 #405DB1 #5C40B1
triadic
#405DB1 #B1405D #5DB140
tetradic
#405DB1 #B14095 #B19440 #40B15C
square
#405DB1 #B14095 #B19440 #40B15C
split-complementary
#405DB1 #B15C40 #95B140
monochromatic
#1F2E57 #304584 #405DB1 #667FC8 #93A5D8

Accessibility & contrast

On white

6.14
#405DB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#405DB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DB1
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DB1#FFFFFF#000000##FFFFFF
##405DB11.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3367B4
Deuteranopia (green-blind)
#1E5DAF
Tritanopia (blue-blind)
#00707E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405db1;
/* rgb */ color: rgb(64, 93, 177);
/* oklch */ color: oklch(50.0% 0.138 267.0);
Tailwind
colors: {
  custom: {
    50: '#808ac9',
    500: '#405db1',
    950: '#000000',
  },
}
SCSS
$custom: #405db1;
$custom-light: #808ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#405db1",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 177
  },
  "hsl": {
    "h": 224.602,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.5004,
    "c": 0.13758,
    "h": 267
  },
  "luminance": 0.12093
}

Semantic roles & 50–950 ramp

primary
#405DB1
secondary
#C3B589
accent
#B451D7
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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