#405BC3#405BC3

#405BC3 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.9% C 0.165 H 268.9°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#405BC3
RGBrgb(64, 91, 195)
HSLhsl(228, 52%, 51%)
HSVhsv(228, 67%, 76%)
CMYKcmyk(67.2%, 53.3%, 0%, 23.5%)
CIE-LABlab(42.02, 24.28, -57.50)
CIE-LCHlch(42.02, 62.42, 292.89°)
OKLaboklab(50.92% -0.0033 -0.1652)
OKLCHoklch(50.92% 0.165 268.9)
XYZxyz(15.7024, 12.5108, 53.2065)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BC3 #C3A840
analogous
#409CC3 #405BC3 #6740C3
triadic
#405BC3 #C3405B #5BC340
tetradic
#405BC3 #C3409C #C3A840 #40C367
square
#405BC3 #C3409C #C3A840 #40C367
split-complementary
#405BC3 #C36740 #9CC340
monochromatic
#212F68 #2F4597 #405BC3 #6F83D2 #9DABE0

Accessibility & contrast

On white

6.00
#405BC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#405BC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BC3
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BC3#FFFFFF#000000##FFFFFF
##405BC31.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1269C7
Deuteranopia (green-blind)
#005DC1
Tritanopia (blue-blind)
#007486
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405bc3;
/* rgb */ color: rgb(64, 91, 195);
/* oklch */ color: oklch(50.9% 0.165 268.9);
Tailwind
colors: {
  custom: {
    50: '#8389d6',
    500: '#405bc3',
    950: '#000000',
  },
}
SCSS
$custom: #405bc3;
$custom-light: #8389d6;
$custom-dark: #000000;
JSON
{
  "hex": "#405bc3",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 195
  },
  "hsl": {
    "h": 227.634,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5092,
    "c": 0.16528,
    "h": 268.9
  },
  "luminance": 0.12512
}

Semantic roles & 50–950 ramp

primary
#405BC3
secondary
#CCC092
accent
#BE4CDC
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405BC3

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

Preview Lab → · Contrast checker → · Palette generator →

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