#405FD3#405FD3

#405FD3 is a mid, vivid blue. Relative luminance 0.140; OKLCH L 52.9% C 0.182 H 268.2°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#405FD3
RGBrgb(64, 95, 211)
HSLhsl(227, 63%, 54%)
HSVhsv(227, 70%, 83%)
CMYKcmyk(69.7%, 55%, 0%, 17.3%)
CIE-LABlab(44.20, 27.45, -63.19)
CIE-LCHlch(44.20, 68.89, 293.48°)
OKLaboklab(52.92% -0.0056 -0.1819)
OKLCHoklch(52.92% 0.182 268.2)
XYZxyz(17.9604, 13.9758, 63.3664)
Luminance0.1398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FD3 #D3B440
analogous
#40A9D3 #405FD3 #6B40D3
triadic
#405FD3 #D3405F #5FD340
tetradic
#405FD3 #D340A9 #D3B440 #40D36B
square
#405FD3 #D340A9 #D3B440 #40D36B
split-complementary
#405FD3 #D36B40 #A9D340
monochromatic
#1D317C #2844AE #405FD3 #7289DE #A3B2EA

Accessibility & contrast

On white

5.53
#405FD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#405FD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FD3
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FD3#FFFFFF#000000##FFFFFF
##405FD31.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD7
Deuteranopia (green-blind)
#0062D1
Tritanopia (blue-blind)
#007B90
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #405fd3;
/* rgb */ color: rgb(64, 95, 211);
/* oklch */ color: oklch(52.9% 0.182 268.2);
Tailwind
colors: {
  custom: {
    50: '#868ce1',
    500: '#405fd3',
    950: '#000000',
  },
}
SCSS
$custom: #405fd3;
$custom-light: #868ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#405fd3",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 211
  },
  "hsl": {
    "h": 227.347,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52922,
    "c": 0.18202,
    "h": 268.2
  },
  "luminance": 0.13978
}

Semantic roles & 50–950 ramp

primary
#405FD3
secondary
#D7CA98
accent
#C342E6
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0D0C15
muted
#7D7D83

Preview Lab

Preview with #405FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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