#405CBA#405CBA

#405CBA is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.5% C 0.152 H 268.1°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#405CBA
RGBrgb(64, 92, 186)
HSLhsl(226, 49%, 49%)
HSVhsv(226, 66%, 73%)
CMYKcmyk(65.6%, 50.5%, 0%, 27.1%)
CIE-LABlab(41.67, 20.42, -52.82)
CIE-LCHlch(41.67, 56.63, 291.14°)
OKLaboklab(50.46% -0.005 -0.1515)
OKLCHoklch(50.46% 0.152 268.1)
XYZxyz(14.8014, 12.2881, 48.0367)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CBA #BA9E40
analogous
#4099BA #405CBA #6140BA
triadic
#405CBA #BA405C #5CBA40
tetradic
#405CBA #BA4099 #BA9E40 #40BA61
square
#405CBA #BA4099 #BA9E40 #40BA61
split-complementary
#405CBA #BA6140 #99BA40
monochromatic
#212F5F #30458C #405CBA #6B81CC #99A8DC

Accessibility & contrast

On white

6.07
#405CBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#405CBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CBA
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CBA#FFFFFF#000000##FFFFFF
##405CBA1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2768BD
Deuteranopia (green-blind)
#005DB8
Tritanopia (blue-blind)
#007282
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405cba;
/* rgb */ color: rgb(64, 92, 186);
/* oklch */ color: oklch(50.5% 0.152 268.1);
Tailwind
colors: {
  custom: {
    50: '#8289cf',
    500: '#405cba',
    950: '#000000',
  },
}
SCSS
$custom: #405cba;
$custom-light: #8289cf;
$custom-dark: #000000;
JSON
{
  "hex": "#405cba",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 186
  },
  "hsl": {
    "h": 226.23,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50462,
    "c": 0.15155,
    "h": 268.1
  },
  "luminance": 0.12289
}

Semantic roles & 50–950 ramp

primary
#405CBA
secondary
#C8BA8E
accent
#B94FD8
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #405CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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