#405BCA#405BCA

#405BCA is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.5% C 0.175 H 269.1°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#405BCA
RGBrgb(64, 91, 202)
HSLhsl(228, 57%, 52%)
HSVhsv(228, 68%, 79%)
CMYKcmyk(68.3%, 55%, 0%, 20.8%)
CIE-LABlab(42.51, 26.78, -60.75)
CIE-LCHlch(42.51, 66.39, 293.79°)
OKLaboklab(51.45% -0.0028 -0.1748)
OKLCHoklch(51.45% 0.175 269.1)
XYZxyz(16.5125, 12.8348, 57.4728)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BCA #CAAF40
analogous
#40A0CA #405BCA #6A40CA
triadic
#405BCA #CA405B #5BCA40
tetradic
#405BCA #CA40A0 #CAAF40 #40CA6A
square
#405BCA #CA40A0 #CAAF40 #40CA6A
split-complementary
#405BCA #CA6A40 #A0CA40
monochromatic
#1F2F70 #2C43A0 #405BCA #7084D7 #A0ADE5

Accessibility & contrast

On white

5.89
#405BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#405BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BCA
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BCA#FFFFFF#000000##FFFFFF
##405BCA1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#005EC8
Tritanopia (blue-blind)
#007689
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405bca;
/* rgb */ color: rgb(64, 91, 202);
/* oklch */ color: oklch(51.5% 0.175 269.1);
Tailwind
colors: {
  custom: {
    50: '#8589db',
    500: '#405bca',
    950: '#000000',
  },
}
SCSS
$custom: #405bca;
$custom-light: #8589db;
$custom-dark: #000000;
JSON
{
  "hex": "#405bca",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 202
  },
  "hsl": {
    "h": 228.261,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.51451,
    "c": 0.17482,
    "h": 269.1
  },
  "luminance": 0.12836
}

Semantic roles & 50–950 ramp

primary
#405BCA
secondary
#D1C595
accent
#C248E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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