#405FC0#405FC0

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

Color values

HEX#405FC0
RGBrgb(64, 95, 192)
HSLhsl(225, 50%, 50%)
HSVhsv(225, 67%, 75%)
CMYKcmyk(66.7%, 50.5%, 0%, 24.7%)
CIE-LABlab(42.88, 20.64, -54.36)
CIE-LCHlch(42.88, 58.15, 290.79°)
OKLaboklab(51.51% -0.0071 -0.156)
OKLCHoklch(51.51% 0.156 267.4)
XYZxyz(15.7177, 13.0787, 51.5551)
Luminance0.1308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FC0 #C0A140
analogous
#409FC0 #405FC0 #6140C0
triadic
#405FC0 #C0405F #5FC040
tetradic
#405FC0 #C0409F #C0A140 #40C061
square
#405FC0 #C0409F #C0A140 #40C061
split-complementary
#405FC0 #C06140 #9FC040
monochromatic
#213164 #304892 #405FC0 #6E86CF #9CACDE

Accessibility & contrast

On white

5.81
#405FC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#405FC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FC0
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FC0#FFFFFF#000000##FFFFFF
##405FC01.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#276BC3
Deuteranopia (green-blind)
#0060BE
Tritanopia (blue-blind)
#007686
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #405fc0;
/* rgb */ color: rgb(64, 95, 192);
/* oklch */ color: oklch(51.5% 0.156 267.4);
Tailwind
colors: {
  custom: {
    50: '#838bd4',
    500: '#405fc0',
    950: '#000000',
  },
}
SCSS
$custom: #405fc0;
$custom-light: #838bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#405fc0",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 192
  },
  "hsl": {
    "h": 225.469,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51509,
    "c": 0.15612,
    "h": 267.4
  },
  "luminance": 0.1308
}

Semantic roles & 50–950 ramp

primary
#405FC0
secondary
#CBBD91
accent
#B84EDA
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83

Preview Lab

Preview with #405FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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