#405DB3#405DB3

#405DB3 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.2% C 0.140 H 267.2°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#405DB3
RGBrgb(64, 93, 179)
HSLhsl(225, 47%, 48%)
HSVhsv(225, 64%, 70%)
CMYKcmyk(64.2%, 48%, 0%, 29.8%)
CIE-LABlab(41.49, 17.28, -49.02)
CIE-LCHlch(41.49, 51.97, 289.42°)
OKLaboklab(50.18% -0.0068 -0.1403)
OKLCHoklch(50.18% 0.14 267.2)
XYZxyz(14.1626, 12.1721, 44.2422)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DB3 #B39640
analogous
#4096B3 #405DB3 #5D40B3
triadic
#405DB3 #B3405D #5DB340
tetradic
#405DB3 #B34096 #B39640 #40B35D
square
#405DB3 #B34096 #B39640 #40B35D
split-complementary
#405DB3 #B35D40 #96B340
monochromatic
#202E59 #304686 #405DB3 #6780C9 #94A6D9

Accessibility & contrast

On white

6.11
#405DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#405DB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DB3
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DB3#FFFFFF#000000##FFFFFF
##405DB31.006.113.436.11
#FFFFFF6.111.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3167B6
Deuteranopia (green-blind)
#1A5DB1
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405db3;
/* rgb */ color: rgb(64, 93, 179);
/* oklch */ color: oklch(50.2% 0.140 267.2);
Tailwind
colors: {
  custom: {
    50: '#808aca',
    500: '#405db3',
    950: '#000000',
  },
}
SCSS
$custom: #405db3;
$custom-light: #808aca;
$custom-dark: #000000;
JSON
{
  "hex": "#405db3",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 179
  },
  "hsl": {
    "h": 224.87,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50178,
    "c": 0.14043,
    "h": 267.2
  },
  "luminance": 0.12173
}

Semantic roles & 50–950 ramp

primary
#405DB3
secondary
#C4B68A
accent
#B551D7
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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