#405FC8#405FC8

#405FC8 is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.1% C 0.167 H 267.8°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#405FC8
RGBrgb(64, 95, 200)
HSLhsl(226, 55%, 52%)
HSVhsv(226, 68%, 78%)
CMYKcmyk(68%, 52.5%, 0%, 21.6%)
CIE-LABlab(43.42, 23.51, -58.12)
CIE-LCHlch(43.42, 62.70, 292.02°)
OKLaboklab(52.09% -0.0064 -0.167)
OKLCHoklch(52.09% 0.167 267.8)
XYZxyz(16.6283, 13.4429, 56.3508)
Luminance0.1344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FC8 #C8A940
analogous
#40A3C8 #405FC8 #6540C8
triadic
#405FC8 #C8405F #5FC840
tetradic
#405FC8 #C840A3 #C8A940 #40C865
square
#405FC8 #C840A3 #C8A940 #40C865
split-complementary
#405FC8 #C86540 #A3C840
monochromatic
#20326E #2D479D #405FC8 #7087D6 #9FAFE3

Accessibility & contrast

On white

5.69
#405FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#405FC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FC8
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FC8#FFFFFF#000000##FFFFFF
##405FC81.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196DCC
Deuteranopia (green-blind)
#0061C6
Tritanopia (blue-blind)
#00788A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #405fc8;
/* rgb */ color: rgb(64, 95, 200);
/* oklch */ color: oklch(52.1% 0.167 267.8);
Tailwind
colors: {
  custom: {
    50: '#848cd9',
    500: '#405fc8',
    950: '#000000',
  },
}
SCSS
$custom: #405fc8;
$custom-light: #848cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#405fc8",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 200
  },
  "hsl": {
    "h": 226.324,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52092,
    "c": 0.16714,
    "h": 267.8
  },
  "luminance": 0.13445
}

Semantic roles & 50–950 ramp

primary
#405FC8
secondary
#D0C294
accent
#BD49DF
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #405FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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