#405BCF#405BCF

#405BCF is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.8% C 0.182 H 269.2°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#405BCF
RGBrgb(64, 91, 207)
HSLhsl(229, 60%, 53%)
HSVhsv(229, 69%, 81%)
CMYKcmyk(69.1%, 56%, 0%, 18.8%)
CIE-LABlab(42.88, 28.56, -63.04)
CIE-LCHlch(42.88, 69.21, 294.38°)
OKLaboklab(51.84% -0.0026 -0.1815)
OKLCHoklch(51.84% 0.182 269.2)
XYZxyz(17.1141, 13.0755, 60.6413)
Luminance0.1308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BCF #CFB440
analogous
#40A3CF #405BCF #6C40CF
triadic
#405BCF #CF405B #5BCF40
tetradic
#405BCF #CF40A3 #CFB440 #40CF6C
square
#405BCF #CF40A3 #CFB440 #40CF6C
split-complementary
#405BCF #CF6C40 #A3CF40
monochromatic
#1E2F77 #2A42A8 #405BCF #7185DB #A2AFE8

Accessibility & contrast

On white

5.81
#405BCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#405BCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BCF
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BCF#FFFFFF#000000##FFFFFF
##405BCF1.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #405bcf;
/* rgb */ color: rgb(64, 91, 207);
/* oklch */ color: oklch(51.8% 0.182 269.2);
Tailwind
colors: {
  custom: {
    50: '#8689de',
    500: '#405bcf',
    950: '#000000',
  },
}
SCSS
$custom: #405bcf;
$custom-light: #8689de;
$custom-dark: #000000;
JSON
{
  "hex": "#405bcf",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 207
  },
  "hsl": {
    "h": 228.671,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.51839,
    "c": 0.18156,
    "h": 269.2
  },
  "luminance": 0.13077
}

Semantic roles & 50–950 ramp

primary
#405BCF
secondary
#D4C997
accent
#C545E3
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405BCF

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

Preview Lab → · Contrast checker → · Palette generator →

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