#405AC9#405AC9

#405AC9 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.2% C 0.175 H 269.3°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#405AC9
RGBrgb(64, 90, 201)
HSLhsl(229, 56%, 52%)
HSVhsv(229, 68%, 79%)
CMYKcmyk(68.2%, 55.2%, 0%, 21.2%)
CIE-LABlab(42.18, 27.06, -60.71)
CIE-LCHlch(42.18, 66.47, 294.03°)
OKLaboklab(51.18% -0.002 -0.1747)
OKLCHoklch(51.18% 0.175 269.3)
XYZxyz(16.3095, 12.6178, 56.8230)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AC9 #C9AF40
analogous
#409FC9 #405AC9 #6B40C9
triadic
#405AC9 #C9405A #5AC940
tetradic
#405AC9 #C9409F #C9AF40 #40C96B
square
#405AC9 #C9409F #C9AF40 #40C96B
split-complementary
#405AC9 #C96B40 #9FC940
monochromatic
#1F2F6F #2D439F #405AC9 #7083D6 #9FACE4

Accessibility & contrast

On white

5.96
#405AC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#405AC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405AC9
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AC9#FFFFFF#000000##FFFFFF
##405AC91.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACD
Deuteranopia (green-blind)
#005EC7
Tritanopia (blue-blind)
#007589
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405ac9;
/* rgb */ color: rgb(64, 90, 201);
/* oklch */ color: oklch(51.2% 0.175 269.3);
Tailwind
colors: {
  custom: {
    50: '#8588da',
    500: '#405ac9',
    950: '#000000',
  },
}
SCSS
$custom: #405ac9;
$custom-light: #8588da;
$custom-dark: #000000;
JSON
{
  "hex": "#405ac9",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 201
  },
  "hsl": {
    "h": 228.613,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.51179,
    "c": 0.17471,
    "h": 269.3
  },
  "luminance": 0.12619
}

Semantic roles & 50–950 ramp

primary
#405AC9
secondary
#D0C594
accent
#C349DF
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405AC9

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

Preview Lab → · Contrast checker → · Palette generator →

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