#405DB6#405DB6

#405DB6 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.4% C 0.145 H 267.5°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#405DB6
RGBrgb(64, 93, 182)
HSLhsl(225, 48%, 48%)
HSVhsv(225, 65%, 71%)
CMYKcmyk(64.8%, 48.9%, 0%, 28.6%)
CIE-LABlab(41.68, 18.35, -50.47)
CIE-LCHlch(41.68, 53.70, 289.98°)
OKLaboklab(50.39% -0.0064 -0.1445)
OKLCHoklch(50.39% 0.145 267.5)
XYZxyz(14.4693, 12.2948, 45.8575)
Luminance0.1230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DB6 #B69940
analogous
#4098B6 #405DB6 #5E40B6
triadic
#405DB6 #B6405D #5DB640
tetradic
#405DB6 #B64098 #B69940 #40B65E
square
#405DB6 #B64098 #B69940 #40B65E
split-complementary
#405DB6 #B65E40 #98B640
monochromatic
#202F5B #304689 #405DB6 #6981CA #96A7DA

Accessibility & contrast

On white

6.07
#405DB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#405DB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DB6
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DB6#FFFFFF#000000##FFFFFF
##405DB61.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E68B9
Deuteranopia (green-blind)
#135DB4
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405db6;
/* rgb */ color: rgb(64, 93, 182);
/* oklch */ color: oklch(50.4% 0.145 267.5);
Tailwind
colors: {
  custom: {
    50: '#818acc',
    500: '#405db6',
    950: '#000000',
  },
}
SCSS
$custom: #405db6;
$custom-light: #818acc;
$custom-dark: #000000;
JSON
{
  "hex": "#405db6",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 182
  },
  "hsl": {
    "h": 225.254,
    "s": 47.967,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50386,
    "c": 0.14466,
    "h": 267.5
  },
  "luminance": 0.12296
}

Semantic roles & 50–950 ramp

primary
#405DB6
secondary
#C6B88C
accent
#B650D8
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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