#405DA8#405DA8

#405DA8 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.4% C 0.125 H 266.1°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#405DA8
RGBrgb(64, 93, 168)
HSLhsl(223, 45%, 45%)
HSVhsv(223, 62%, 66%)
CMYKcmyk(61.9%, 44.6%, 0%, 34.1%)
CIE-LABlab(40.81, 13.38, -43.62)
CIE-LCHlch(40.81, 45.63, 287.05°)
OKLaboklab(49.44% -0.0085 -0.1244)
OKLCHoklch(49.44% 0.125 266.1)
XYZxyz(13.0942, 11.7447, 38.6151)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DA8 #A88B40
analogous
#4091A8 #405DA8 #5740A8
triadic
#405DA8 #A8405D #5DA840
tetradic
#405DA8 #A84091 #A88B40 #40A857
square
#405DA8 #A84091 #A88B40 #40A857
split-complementary
#405DA8 #A85740 #91A840
monochromatic
#1E2C4F #2F447C #405DA8 #627DC3 #8EA2D4

Accessibility & contrast

On white

6.27
#405DA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#405DA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DA8
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DA8#FFFFFF#000000##FFFFFF
##405DA81.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A65AB
Deuteranopia (green-blind)
#2B5CA6
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #405da8;
/* rgb */ color: rgb(64, 93, 168);
/* oklch */ color: oklch(49.4% 0.125 266.1);
Tailwind
colors: {
  custom: {
    50: '#7e8ac2',
    500: '#405da8',
    950: '#000000',
  },
}
SCSS
$custom: #405da8;
$custom-light: #7e8ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#405da8",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 168
  },
  "hsl": {
    "h": 223.269,
    "s": 44.828,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49437,
    "c": 0.1247,
    "h": 266.1
  },
  "luminance": 0.11746
}

Semantic roles & 50–950 ramp

primary
#405DA8
secondary
#BFAF85
accent
#B053D5
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B12
muted
#7C7C81

Preview Lab

Preview with #405DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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