#405FC3#405FC3

#405FC3 is a mid, vivid blue. Relative luminance 0.132; OKLCH L 51.7% C 0.160 H 267.6°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#405FC3
RGBrgb(64, 95, 195)
HSLhsl(226, 52%, 51%)
HSVhsv(226, 67%, 76%)
CMYKcmyk(67.2%, 51.3%, 0%, 23.5%)
CIE-LABlab(43.08, 21.72, -55.78)
CIE-LCHlch(43.08, 59.86, 291.27°)
OKLaboklab(51.73% -0.0068 -0.1601)
OKLCHoklch(51.73% 0.16 267.6)
XYZxyz(16.0535, 13.2130, 53.3235)
Luminance0.1321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FC3 #C3A440
analogous
#40A0C3 #405FC3 #6340C3
triadic
#405FC3 #C3405F #5FC340
tetradic
#405FC3 #C340A0 #C3A440 #40C363
square
#405FC3 #C340A0 #C3A440 #40C363
split-complementary
#405FC3 #C36340 #A0C340
monochromatic
#213268 #2F4897 #405FC3 #6F86D2 #9DADE0

Accessibility & contrast

On white

5.76
#405FC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#405FC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FC3
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FC3#FFFFFF#000000##FFFFFF
##405FC31.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#236CC7
Deuteranopia (green-blind)
#0060C1
Tritanopia (blue-blind)
#007788
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #405fc3;
/* rgb */ color: rgb(64, 95, 195);
/* oklch */ color: oklch(51.7% 0.160 267.6);
Tailwind
colors: {
  custom: {
    50: '#838cd6',
    500: '#405fc3',
    950: '#000000',
  },
}
SCSS
$custom: #405fc3;
$custom-light: #838cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#405fc3",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 195
  },
  "hsl": {
    "h": 225.802,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51726,
    "c": 0.16028,
    "h": 267.6
  },
  "luminance": 0.13215
}

Semantic roles & 50–950 ramp

primary
#405FC3
secondary
#CCBF92
accent
#BA4CDC
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83

Preview Lab

Preview with #405FC3

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

Preview Lab → · Contrast checker → · Palette generator →

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