#405FAC#405FAC

#405FAC is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.1% C 0.128 H 265.5°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#405FAC
RGBrgb(64, 95, 172)
HSLhsl(223, 46%, 46%)
HSVhsv(223, 63%, 67%)
CMYKcmyk(62.8%, 44.8%, 0%, 32.5%)
CIE-LABlab(41.61, 13.51, -44.70)
CIE-LCHlch(41.61, 46.69, 286.81°)
OKLaboklab(50.13% -0.01 -0.1275)
OKLCHoklch(50.13% 0.128 265.5)
XYZxyz(13.6504, 12.2518, 40.6672)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FAC #AC8D40
analogous
#4095AC #405FAC #5740AC
triadic
#405FAC #AC405F #5FAC40
tetradic
#405FAC #AC4095 #AC8D40 #40AC57
square
#405FAC #AC4095 #AC8D40 #40AC57
split-complementary
#405FAC #AC5740 #95AC40
monochromatic
#1F2E53 #2F467F #405FAC #6480C5 #91A4D6

Accessibility & contrast

On white

6.09
#405FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#405FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FAC
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FAC#FFFFFF#000000##FFFFFF
##405FAC1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B67AF
Deuteranopia (green-blind)
#2A5EAA
Tritanopia (blue-blind)
#00707D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405fac;
/* rgb */ color: rgb(64, 95, 172);
/* oklch */ color: oklch(50.1% 0.128 265.5);
Tailwind
colors: {
  custom: {
    50: '#7f8cc5',
    500: '#405fac',
    950: '#000000',
  },
}
SCSS
$custom: #405fac;
$custom-light: #7f8cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#405fac",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 172
  },
  "hsl": {
    "h": 222.778,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50134,
    "c": 0.12793,
    "h": 265.5
  },
  "luminance": 0.12253
}

Semantic roles & 50–950 ramp

primary
#405FAC
secondary
#C1B087
accent
#B052D5
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #405FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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