#405FC1#405FC1

#405FC1 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.6% C 0.158 H 267.4°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#405FC1
RGBrgb(64, 95, 193)
HSLhsl(226, 51%, 50%)
HSVhsv(226, 67%, 76%)
CMYKcmyk(66.8%, 50.8%, 0%, 24.3%)
CIE-LABlab(42.95, 21.00, -54.84)
CIE-LCHlch(42.95, 58.72, 290.96°)
OKLaboklab(51.58% -0.007 -0.1573)
OKLCHoklch(51.58% 0.158 267.4)
XYZxyz(15.8289, 13.1232, 52.1406)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FC1 #C1A240
analogous
#40A0C1 #405FC1 #6140C1
triadic
#405FC1 #C1405F #5FC140
tetradic
#405FC1 #C140A0 #C1A240 #40C161
square
#405FC1 #C140A0 #C1A240 #40C161
split-complementary
#405FC1 #C16140 #A0C140
monochromatic
#213166 #304894 #405FC1 #6E86D0 #9CACDF

Accessibility & contrast

On white

5.79
#405FC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#405FC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FC1
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FC1#FFFFFF#000000##FFFFFF
##405FC11.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#266CC5
Deuteranopia (green-blind)
#0060BF
Tritanopia (blue-blind)
#007687
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #405fc1;
/* rgb */ color: rgb(64, 95, 193);
/* oklch */ color: oklch(51.6% 0.158 267.4);
Tailwind
colors: {
  custom: {
    50: '#838bd4',
    500: '#405fc1',
    950: '#000000',
  },
}
SCSS
$custom: #405fc1;
$custom-light: #838bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#405fc1",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 193
  },
  "hsl": {
    "h": 225.581,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51581,
    "c": 0.15751,
    "h": 267.4
  },
  "luminance": 0.13125
}

Semantic roles & 50–950 ramp

primary
#405FC1
secondary
#CBBD92
accent
#B94DDA
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83

Preview Lab

Preview with #405FC1

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

Preview Lab → · Contrast checker → · Palette generator →

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