#405DB7#405DB7

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

Color values

HEX#405DB7
RGBrgb(64, 93, 183)
HSLhsl(225, 48%, 48%)
HSVhsv(225, 65%, 72%)
CMYKcmyk(65%, 49.2%, 0%, 28.2%)
CIE-LABlab(41.75, 18.71, -50.95)
CIE-LCHlch(41.75, 54.27, 290.16°)
OKLaboklab(50.46% -0.0063 -0.1459)
OKLCHoklch(50.46% 0.146 267.5)
XYZxyz(14.5730, 12.3363, 46.4037)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DB7 #B79A40
analogous
#4098B7 #405DB7 #5E40B7
triadic
#405DB7 #B7405D #5DB740
tetradic
#405DB7 #B74098 #B79A40 #40B75E
square
#405DB7 #B74098 #B79A40 #40B75E
split-complementary
#405DB7 #B75E40 #98B740
monochromatic
#202F5C #30468A #405DB7 #6981CB #97A7DB

Accessibility & contrast

On white

6.06
#405DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#405DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DB7
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DB7#FFFFFF#000000##FFFFFF
##405DB71.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D68BA
Deuteranopia (green-blind)
#105DB5
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405db7;
/* rgb */ color: rgb(64, 93, 183);
/* oklch */ color: oklch(50.5% 0.146 267.5);
Tailwind
colors: {
  custom: {
    50: '#818acd',
    500: '#405db7',
    950: '#000000',
  },
}
SCSS
$custom: #405db7;
$custom-light: #818acd;
$custom-dark: #000000;
JSON
{
  "hex": "#405db7",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 183
  },
  "hsl": {
    "h": 225.378,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50456,
    "c": 0.14608,
    "h": 267.5
  },
  "luminance": 0.12338
}

Semantic roles & 50–950 ramp

primary
#405DB7
secondary
#C6B88D
accent
#B750D8
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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