#405ACF#405ACF

#405ACF is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.6% C 0.183 H 269.4°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#405ACF
RGBrgb(64, 90, 207)
HSLhsl(229, 60%, 53%)
HSVhsv(229, 69%, 81%)
CMYKcmyk(69.1%, 56.5%, 0%, 18.8%)
CIE-LABlab(42.62, 29.20, -63.45)
CIE-LCHlch(42.62, 69.85, 294.71°)
OKLaboklab(51.65% -0.0018 -0.1828)
OKLCHoklch(51.65% 0.183 269.4)
XYZxyz(17.0291, 12.9056, 60.6130)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405ACF #CFB540
analogous
#40A1CF #405ACF #6D40CF
triadic
#405ACF #CF405A #5ACF40
tetradic
#405ACF #CF40A1 #CFB540 #40CF6D
square
#405ACF #CF40A1 #CFB540 #40CF6D
split-complementary
#405ACF #CF6D40 #A1CF40
monochromatic
#1E2E77 #2A41A8 #405ACF #7184DB #A2AFE8

Accessibility & contrast

On white

5.86
#405ACF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#405ACF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405ACF
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405ACF#FFFFFF#000000##FFFFFF
##405ACF1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD3
Deuteranopia (green-blind)
#005ECD
Tritanopia (blue-blind)
#00778C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #405acf;
/* rgb */ color: rgb(64, 90, 207);
/* oklch */ color: oklch(51.6% 0.183 269.4);
Tailwind
colors: {
  custom: {
    50: '#8688de',
    500: '#405acf',
    950: '#000000',
  },
}
SCSS
$custom: #405acf;
$custom-light: #8688de;
$custom-dark: #000000;
JSON
{
  "hex": "#405acf",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 207
  },
  "hsl": {
    "h": 229.091,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.51647,
    "c": 0.18279,
    "h": 269.4
  },
  "luminance": 0.12907
}

Semantic roles & 50–950 ramp

primary
#405ACF
secondary
#D4C997
accent
#C645E3
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0D0B15
muted
#7D7C83

Preview Lab

Preview with #405ACF

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

Preview Lab → · Contrast checker → · Palette generator →

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