#405DCA#405DCA

#405DCA is a mid, vivid blue. Relative luminance 0.132; OKLCH L 51.8% C 0.172 H 268.5°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#405DCA
RGBrgb(64, 93, 202)
HSLhsl(227, 57%, 52%)
HSVhsv(227, 68%, 79%)
CMYKcmyk(68.3%, 54%, 0%, 20.8%)
CIE-LABlab(43.04, 25.50, -59.90)
CIE-LCHlch(43.04, 65.11, 293.06°)
OKLaboklab(51.84% -0.0045 -0.1723)
OKLCHoklch(51.84% 0.172 268.5)
XYZxyz(16.6857, 13.1813, 57.5306)
Luminance0.1318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DCA #CAAD40
analogous
#40A2CA #405DCA #6840CA
triadic
#405DCA #CA405D #5DCA40
tetradic
#405DCA #CA40A2 #CAAD40 #40CA68
square
#405DCA #CA40A2 #CAAD40 #40CA68
split-complementary
#405DCA #CA6840 #A2CA40
monochromatic
#1F3070 #2C45A0 #405DCA #7086D7 #A0AEE5

Accessibility & contrast

On white

5.77
#405DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#405DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DCA
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DCA#FFFFFF#000000##FFFFFF
##405DCA1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#076CCE
Deuteranopia (green-blind)
#0060C8
Tritanopia (blue-blind)
#00778A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #405dca;
/* rgb */ color: rgb(64, 93, 202);
/* oklch */ color: oklch(51.8% 0.172 268.5);
Tailwind
colors: {
  custom: {
    50: '#858adb',
    500: '#405dca',
    950: '#000000',
  },
}
SCSS
$custom: #405dca;
$custom-light: #858adb;
$custom-dark: #000000;
JSON
{
  "hex": "#405dca",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 202
  },
  "hsl": {
    "h": 227.391,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.51844,
    "c": 0.17235,
    "h": 268.5
  },
  "luminance": 0.13183
}

Semantic roles & 50–950 ramp

primary
#405DCA
secondary
#D1C495
accent
#C048E0
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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