#405AC3#405AC3

#405AC3 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.7% C 0.167 H 269.2°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#405AC3
RGBrgb(64, 90, 195)
HSLhsl(228, 52%, 51%)
HSVhsv(228, 67%, 76%)
CMYKcmyk(67.2%, 53.8%, 0%, 23.5%)
CIE-LABlab(41.75, 24.92, -57.93)
CIE-LCHlch(41.75, 63.06, 293.28°)
OKLaboklab(50.72% -0.0024 -0.1665)
OKLCHoklch(50.72% 0.167 269.2)
XYZxyz(15.6175, 12.3410, 53.1782)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AC3 #C3A940
analogous
#409BC3 #405AC3 #6840C3
triadic
#405AC3 #C3405A #5AC340
tetradic
#405AC3 #C3409B #C3A940 #40C368
square
#405AC3 #C3409B #C3A940 #40C368
split-complementary
#405AC3 #C36840 #9BC340
monochromatic
#212F68 #2F4497 #405AC3 #6F82D2 #9DAAE0

Accessibility & contrast

On white

6.05
#405AC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#405AC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405AC3
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AC3#FFFFFF#000000##FFFFFF
##405AC31.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C69C7
Deuteranopia (green-blind)
#005DC1
Tritanopia (blue-blind)
#007386
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405ac3;
/* rgb */ color: rgb(64, 90, 195);
/* oklch */ color: oklch(50.7% 0.167 269.2);
Tailwind
colors: {
  custom: {
    50: '#8488d6',
    500: '#405ac3',
    950: '#000000',
  },
}
SCSS
$custom: #405ac3;
$custom-light: #8488d6;
$custom-dark: #000000;
JSON
{
  "hex": "#405ac3",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 195
  },
  "hsl": {
    "h": 228.092,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.50721,
    "c": 0.16654,
    "h": 269.2
  },
  "luminance": 0.12342
}

Semantic roles & 50–950 ramp

primary
#405AC3
secondary
#CCC192
accent
#BF4CDC
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405AC3

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

Preview Lab → · Contrast checker → · Palette generator →

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