#405DC0#405DC0

#405DC0 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.1% C 0.159 H 268.1°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#405DC0
RGBrgb(64, 93, 192)
HSLhsl(226, 50%, 50%)
HSVhsv(226, 67%, 75%)
CMYKcmyk(66.7%, 51.6%, 0%, 24.7%)
CIE-LABlab(42.34, 21.93, -55.23)
CIE-LCHlch(42.34, 59.43, 291.65°)
OKLaboklab(51.1% -0.0053 -0.1585)
OKLCHoklch(51.1% 0.159 268.1)
XYZxyz(15.5399, 12.7230, 51.4958)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DC0 #C0A340
analogous
#409DC0 #405DC0 #6340C0
triadic
#405DC0 #C0405D #5DC040
tetradic
#405DC0 #C0409D #C0A340 #40C063
square
#405DC0 #C0409D #C0A340 #40C063
split-complementary
#405DC0 #C06340 #9DC040
monochromatic
#213064 #304792 #405DC0 #6E84CF #9CABDE

Accessibility & contrast

On white

5.92
#405DC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#405DC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DC0
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DC0#FFFFFF#000000##FFFFFF
##405DC01.005.923.545.92
#FFFFFF5.921.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#216AC4
Deuteranopia (green-blind)
#005EBE
Tritanopia (blue-blind)
#007485
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405dc0;
/* rgb */ color: rgb(64, 93, 192);
/* oklch */ color: oklch(51.1% 0.159 268.1);
Tailwind
colors: {
  custom: {
    50: '#838ad4',
    500: '#405dc0',
    950: '#000000',
  },
}
SCSS
$custom: #405dc0;
$custom-light: #838ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#405dc0",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 192
  },
  "hsl": {
    "h": 226.406,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51101,
    "c": 0.15864,
    "h": 268.1
  },
  "luminance": 0.12724
}

Semantic roles & 50–950 ramp

primary
#405DC0
secondary
#CBBE91
accent
#BA4EDA
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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