#405DFF#405DFF

#405DFF is a mid, highly saturated blue. Relative luminance 0.161; OKLCH L 56.2% C 0.241 H 269.0°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#405DFF
RGBrgb(64, 93, 255)
HSLhsl(231, 100%, 63%)
HSVhsv(231, 75%, 100%)
CMYKcmyk(74.9%, 63.5%, 0%, 0%)
CIE-LABlab(47.15, 44.14, -83.18)
CIE-LCHlch(47.15, 94.17, 297.95°)
OKLaboklab(56.19% -0.0042 -0.2406)
OKLCHoklch(56.19% 0.241 269)
XYZxyz(24.0725, 16.1360, 96.4342)
Luminance0.1614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DFF #FFE240
analogous
#40BDFF #405DFF #8240FF
triadic
#405DFF #FF405D #5DFF40
tetradic
#405DFF #FF40BD #FFE240 #40FF82
square
#405DFF #FF40BD #FFE240 #40FF82
split-complementary
#405DFF #FF8240 #BDFF40
monochromatic
#001EC5 #0329FF #405DFF #7D91FF #BAC5FF

Accessibility & contrast

On white

4.97
#405DFF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#405DFF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DFF
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DFF#FFFFFF#000000##FFFFFF
##405DFF1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079FF
Deuteranopia (green-blind)
#0067FC
Tritanopia (blue-blind)
#0088A6
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #405dff;
/* rgb */ color: rgb(64, 93, 255);
/* oklch */ color: oklch(56.2% 0.241 269.0);
Tailwind
colors: {
  custom: {
    50: '#908bff',
    500: '#405dff',
    950: '#000000',
  },
}
SCSS
$custom: #405dff;
$custom-light: #908bff;
$custom-dark: #000000;
JSON
{
  "hex": "#405dff",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 255
  },
  "hsl": {
    "h": 230.89,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.56186,
    "c": 0.24066,
    "h": 269
  },
  "luminance": 0.16139
}

Semantic roles & 50–950 ramp

primary
#405DFF
secondary
#F0E6AB
accent
#C300E6
background
#F9F8FF
surface
#F2F0FF
border
#CCCBD7
text
#0F0C18
muted
#7E7D86

Preview Lab

Preview with #405DFF

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

Preview Lab → · Contrast checker → · Palette generator →

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