#405FCA#405FCA

#405FCA is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.2% C 0.170 H 267.9°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#405FCA
RGBrgb(64, 95, 202)
HSLhsl(227, 57%, 52%)
HSVhsv(227, 68%, 79%)
CMYKcmyk(68.3%, 53%, 0%, 20.8%)
CIE-LABlab(43.56, 24.23, -59.05)
CIE-LCHlch(43.56, 63.83, 292.31°)
OKLaboklab(52.24% -0.0062 -0.1698)
OKLCHoklch(52.24% 0.17 267.9)
XYZxyz(16.8636, 13.5370, 57.5899)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FCA #CAAB40
analogous
#40A4CA #405FCA #6640CA
triadic
#405FCA #CA405F #5FCA40
tetradic
#405FCA #CA40A4 #CAAB40 #40CA66
square
#405FCA #CA40A4 #CAAB40 #40CA66
split-complementary
#405FCA #CA6640 #A4CA40
monochromatic
#1F3170 #2C47A0 #405FCA #7087D7 #A0AFE5

Accessibility & contrast

On white

5.66
#405FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#405FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FCA
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FCA#FFFFFF#000000##FFFFFF
##405FCA1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#156ECE
Deuteranopia (green-blind)
#0061C8
Tritanopia (blue-blind)
#00798B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #405fca;
/* rgb */ color: rgb(64, 95, 202);
/* oklch */ color: oklch(52.2% 0.170 267.9);
Tailwind
colors: {
  custom: {
    50: '#858cdb',
    500: '#405fca',
    950: '#000000',
  },
}
SCSS
$custom: #405fca;
$custom-light: #858cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#405fca",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 202
  },
  "hsl": {
    "h": 226.522,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52241,
    "c": 0.16986,
    "h": 267.9
  },
  "luminance": 0.13539
}

Semantic roles & 50–950 ramp

primary
#405FCA
secondary
#D1C395
accent
#BE48E0
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #405FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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