#405ACB#405ACB

#405ACB is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.3% C 0.177 H 269.4°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#405ACB
RGBrgb(64, 90, 203)
HSLhsl(229, 57%, 52%)
HSVhsv(229, 68%, 80%)
CMYKcmyk(68.5%, 55.7%, 0%, 20.4%)
CIE-LABlab(42.33, 27.78, -61.63)
CIE-LCHlch(42.33, 67.60, 294.26°)
OKLaboklab(51.33% -0.0019 -0.1774)
OKLCHoklch(51.33% 0.177 269.4)
XYZxyz(16.5463, 12.7125, 58.0701)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405ACB #CBB140
analogous
#40A0CB #405ACB #6C40CB
triadic
#405ACB #CB405A #5ACB40
tetradic
#405ACB #CB40A0 #CBB140 #40CB6C
square
#405ACB #CB40A0 #CBB140 #40CB6C
split-complementary
#405ACB #CB6C40 #A0CB40
monochromatic
#1F2E72 #2C42A2 #405ACB #7084D8 #A0ADE5

Accessibility & contrast

On white

5.93
#405ACB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#405ACB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405ACB
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405ACB#FFFFFF#000000##FFFFFF
##405ACB1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#005EC9
Tritanopia (blue-blind)
#00758A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405acb;
/* rgb */ color: rgb(64, 90, 203);
/* oklch */ color: oklch(51.3% 0.177 269.4);
Tailwind
colors: {
  custom: {
    50: '#8588dc',
    500: '#405acb',
    950: '#000000',
  },
}
SCSS
$custom: #405acb;
$custom-light: #8588dc;
$custom-dark: #000000;
JSON
{
  "hex": "#405acb",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 203
  },
  "hsl": {
    "h": 228.777,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.51334,
    "c": 0.17741,
    "h": 269.4
  },
  "luminance": 0.12714
}

Semantic roles & 50–950 ramp

primary
#405ACB
secondary
#D2C695
accent
#C447E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405ACB

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

Preview Lab → · Contrast checker → · Palette generator →

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