#405FC9#405FC9

#405FC9 is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.2% C 0.169 H 267.9°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#405FC9
RGBrgb(64, 95, 201)
HSLhsl(226, 56%, 52%)
HSVhsv(226, 68%, 79%)
CMYKcmyk(68.2%, 52.7%, 0%, 21.2%)
CIE-LABlab(43.49, 23.87, -58.59)
CIE-LCHlch(43.49, 63.26, 292.17°)
OKLaboklab(52.17% -0.0063 -0.1684)
OKLCHoklch(52.17% 0.169 267.9)
XYZxyz(16.7455, 13.4898, 56.9683)
Luminance0.1349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FC9 #C9AA40
analogous
#40A4C9 #405FC9 #6640C9
triadic
#405FC9 #C9405F #5FC940
tetradic
#405FC9 #C940A4 #C9AA40 #40C966
square
#405FC9 #C940A4 #C9AA40 #40C966
split-complementary
#405FC9 #C96640 #A4C940
monochromatic
#1F316F #2D479F #405FC9 #7087D6 #9FAFE4

Accessibility & contrast

On white

5.68
#405FC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#405FC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FC9
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FC9#FFFFFF#000000##FFFFFF
##405FC91.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#176DCD
Deuteranopia (green-blind)
#0061C7
Tritanopia (blue-blind)
#00788B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #405fc9;
/* rgb */ color: rgb(64, 95, 201);
/* oklch */ color: oklch(52.2% 0.169 267.9);
Tailwind
colors: {
  custom: {
    50: '#848cda',
    500: '#405fc9',
    950: '#000000',
  },
}
SCSS
$custom: #405fc9;
$custom-light: #848cda;
$custom-dark: #000000;
JSON
{
  "hex": "#405fc9",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 201
  },
  "hsl": {
    "h": 226.423,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.52166,
    "c": 0.16851,
    "h": 267.9
  },
  "luminance": 0.13491
}

Semantic roles & 50–950 ramp

primary
#405FC9
secondary
#D0C394
accent
#BD49DF
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #405FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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