#406AAF#406AAF

#406AAF is a mid, moderate blue. Relative luminance 0.145; OKLCH L 52.7% C 0.119 H 259.8°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#406AAF
RGBrgb(64, 106, 175)
HSLhsl(217, 46%, 47%)
HSVhsv(217, 63%, 69%)
CMYKcmyk(63.4%, 39.4%, 0%, 31.4%)
CIE-LABlab(44.93, 7.59, -41.18)
CIE-LCHlch(44.93, 41.87, 280.45°)
OKLaboklab(52.75% -0.021 -0.1171)
OKLCHoklch(52.75% 0.119 259.8)
XYZxyz(15.0035, 14.4918, 42.5557)
Luminance0.1449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406AAF #AF8540
analogous
#40A2AF #406AAF #4D40AF
triadic
#406AAF #AF406A #6AAF40
tetradic
#406AAF #AF40A2 #AF8540 #40AF4D
square
#406AAF #AF40A2 #AF8540 #40AF4D
split-complementary
#406AAF #AF4D40 #A2AF40
monochromatic
#1F3455 #304F82 #406AAF #658AC7 #92ACD7

Accessibility & contrast

On white

5.39
#406AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#406AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406AAF
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406AAF#FFFFFF#000000##FFFFFF
##406AAF1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C70B2
Deuteranopia (green-blind)
#3C66AE
Tritanopia (blue-blind)
#007A84
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #406aaf;
/* rgb */ color: rgb(64, 106, 175);
/* oklch */ color: oklch(52.7% 0.119 259.8);
Tailwind
colors: {
  custom: {
    50: '#7f94c7',
    500: '#406aaf',
    950: '#000000',
  },
}
SCSS
$custom: #406aaf;
$custom-light: #7f94c7;
$custom-dark: #000000;
JSON
{
  "hex": "#406aaf",
  "rgb": {
    "r": 64,
    "g": 106,
    "b": 175
  },
  "hsl": {
    "h": 217.297,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.52749,
    "c": 0.11893,
    "h": 259.8
  },
  "luminance": 0.14493
}

Semantic roles & 50–950 ramp

primary
#406AAF
secondary
#C3AC88
accent
#A452D6
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406AAF

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

Preview Lab → · Contrast checker → · Palette generator →

#406AAF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva