#405FCB#405FCB

#405FCB is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.3% C 0.171 H 267.9°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#405FCB
RGBrgb(64, 95, 203)
HSLhsl(227, 57%, 52%)
HSVhsv(227, 68%, 80%)
CMYKcmyk(68.5%, 53.2%, 0%, 20.4%)
CIE-LABlab(43.63, 24.58, -59.51)
CIE-LCHlch(43.63, 64.39, 292.44°)
OKLaboklab(52.32% -0.0061 -0.1711)
OKLCHoklch(52.32% 0.171 267.9)
XYZxyz(16.9823, 13.5845, 58.2154)
Luminance0.1359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FCB #CBAC40
analogous
#40A4CB #405FCB #6740CB
triadic
#405FCB #CB405F #5FCB40
tetradic
#405FCB #CB40A4 #CBAC40 #40CB67
square
#405FCB #CB40A4 #CBAC40 #40CB67
split-complementary
#405FCB #CB6740 #A4CB40
monochromatic
#1F3172 #2C46A2 #405FCB #7087D8 #A0B0E5

Accessibility & contrast

On white

5.65
#405FCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#405FCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FCB
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FCB#FFFFFF#000000##FFFFFF
##405FCB1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#126ECF
Deuteranopia (green-blind)
#0061C9
Tritanopia (blue-blind)
#00798C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #405fcb;
/* rgb */ color: rgb(64, 95, 203);
/* oklch */ color: oklch(52.3% 0.171 267.9);
Tailwind
colors: {
  custom: {
    50: '#858cdc',
    500: '#405fcb',
    950: '#000000',
  },
}
SCSS
$custom: #405fcb;
$custom-light: #858cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#405fcb",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 203
  },
  "hsl": {
    "h": 226.619,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.52315,
    "c": 0.17123,
    "h": 267.9
  },
  "luminance": 0.13586
}

Semantic roles & 50–950 ramp

primary
#405FCB
secondary
#D2C495
accent
#BE47E0
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #405FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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