#405FA8#405FA8

#405FA8 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 49.9% C 0.122 H 265.0°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#405FA8
RGBrgb(64, 95, 168)
HSLhsl(222, 45%, 45%)
HSVhsv(222, 62%, 66%)
CMYKcmyk(61.9%, 43.5%, 0%, 34.1%)
CIE-LABlab(41.38, 12.09, -42.72)
CIE-LCHlch(41.38, 44.40, 285.81°)
OKLaboklab(49.87% -0.0107 -0.1217)
OKLCHoklch(49.87% 0.122 265)
XYZxyz(13.2720, 12.1004, 38.6744)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FA8 #A88940
analogous
#4093A8 #405FA8 #5540A8
triadic
#405FA8 #A8405F #5FA840
tetradic
#405FA8 #A84093 #A88940 #40A855
square
#405FA8 #A84093 #A88940 #40A855
split-complementary
#405FA8 #A85540 #93A840
monochromatic
#1E2D4F #2F467C #405FA8 #627FC3 #8EA3D4

Accessibility & contrast

On white

6.14
#405FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#405FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FA8
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FA8#FFFFFF#000000##FFFFFF
##405FA81.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E67AB
Deuteranopia (green-blind)
#2F5DA6
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405fa8;
/* rgb */ color: rgb(64, 95, 168);
/* oklch */ color: oklch(49.9% 0.122 265.0);
Tailwind
colors: {
  custom: {
    50: '#7e8cc2',
    500: '#405fa8',
    950: '#000000',
  },
}
SCSS
$custom: #405fa8;
$custom-light: #7e8cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#405fa8",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 168
  },
  "hsl": {
    "h": 222.115,
    "s": 44.828,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49873,
    "c": 0.12219,
    "h": 265
  },
  "luminance": 0.12102
}

Semantic roles & 50–950 ramp

primary
#405FA8
secondary
#BFAE85
accent
#AE53D5
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C12
muted
#7C7D81

Preview Lab

Preview with #405FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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