#405DAC#405DAC

#405DAC is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.7% C 0.130 H 266.5°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#405DAC
RGBrgb(64, 93, 172)
HSLhsl(224, 46%, 46%)
HSVhsv(224, 63%, 67%)
CMYKcmyk(62.8%, 45.9%, 0%, 32.5%)
CIE-LABlab(41.05, 14.79, -45.60)
CIE-LCHlch(41.05, 47.94, 287.97°)
OKLaboklab(49.7% -0.0079 -0.1302)
OKLCHoklch(49.7% 0.13 266.5)
XYZxyz(13.4725, 11.8961, 40.6079)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DAC #AC8F40
analogous
#4093AC #405DAC #5940AC
triadic
#405DAC #AC405D #5DAC40
tetradic
#405DAC #AC4093 #AC8F40 #40AC59
square
#405DAC #AC4093 #AC8F40 #40AC59
split-complementary
#405DAC #AC5940 #93AC40
monochromatic
#1F2D53 #2F457F #405DAC #647EC5 #91A3D6

Accessibility & contrast

On white

6.21
#405DAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#405DAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DAC
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DAC#FFFFFF#000000##FFFFFF
##405DAC1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3766AF
Deuteranopia (green-blind)
#265CAA
Tritanopia (blue-blind)
#006F7C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405dac;
/* rgb */ color: rgb(64, 93, 172);
/* oklch */ color: oklch(49.7% 0.130 266.5);
Tailwind
colors: {
  custom: {
    50: '#7f8ac5',
    500: '#405dac',
    950: '#000000',
  },
}
SCSS
$custom: #405dac;
$custom-light: #7f8ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#405dac",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 172
  },
  "hsl": {
    "h": 223.889,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49702,
    "c": 0.13045,
    "h": 266.5
  },
  "luminance": 0.11897
}

Semantic roles & 50–950 ramp

primary
#405DAC
secondary
#C1B187
accent
#B252D5
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405DAC

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

Preview Lab → · Contrast checker → · Palette generator →

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