#405FCF#405FCF

#405FCF is a mid, vivid blue. Relative luminance 0.138; OKLCH L 52.6% C 0.177 H 268.1°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#405FCF
RGBrgb(64, 95, 207)
HSLhsl(227, 60%, 53%)
HSVhsv(227, 69%, 81%)
CMYKcmyk(69.1%, 54.1%, 0%, 18.8%)
CIE-LABlab(43.91, 26.02, -61.36)
CIE-LCHlch(43.91, 66.65, 292.98°)
OKLaboklab(52.62% -0.0059 -0.1765)
OKLCHoklch(52.62% 0.177 268.1)
XYZxyz(17.4652, 13.7777, 60.7583)
Luminance0.1378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FCF #CFB040
analogous
#40A6CF #405FCF #6840CF
triadic
#405FCF #CF405F #5FCF40
tetradic
#405FCF #CF40A6 #CFB040 #40CF68
square
#405FCF #CF40A6 #CFB040 #40CF68
split-complementary
#405FCF #CF6840 #A6CF40
monochromatic
#1E3177 #2A45A8 #405FCF #7188DB #A2B1E8

Accessibility & contrast

On white

5.59
#405FCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#405FCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FCF
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FCF#FFFFFF#000000##FFFFFF
##405FCF1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#016FD3
Deuteranopia (green-blind)
#0062CD
Tritanopia (blue-blind)
#007A8E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #405fcf;
/* rgb */ color: rgb(64, 95, 207);
/* oklch */ color: oklch(52.6% 0.177 268.1);
Tailwind
colors: {
  custom: {
    50: '#868cde',
    500: '#405fcf',
    950: '#000000',
  },
}
SCSS
$custom: #405fcf;
$custom-light: #868cde;
$custom-dark: #000000;
JSON
{
  "hex": "#405fcf",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 207
  },
  "hsl": {
    "h": 226.993,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52617,
    "c": 0.17664,
    "h": 268.1
  },
  "luminance": 0.13779
}

Semantic roles & 50–950 ramp

primary
#405FCF
secondary
#D4C797
accent
#C145E3
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #405FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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