#406FB8#406FB8

#406FB8 is a mid, vivid blue. Relative luminance 0.159; OKLCH L 54.4% C 0.126 H 258.9°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#406FB8
RGBrgb(64, 111, 184)
HSLhsl(217, 48%, 49%)
HSVhsv(217, 65%, 72%)
CMYKcmyk(65.2%, 39.7%, 0%, 27.8%)
CIE-LABlab(46.87, 7.65, -43.34)
CIE-LCHlch(46.87, 44.01, 280.01°)
OKLaboklab(54.41% -0.0242 -0.1233)
OKLCHoklch(54.41% 0.126 258.9)
XYZxyz(16.4474, 15.9180, 47.5438)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406FB8 #B88940
analogous
#40ABB8 #406FB8 #4D40B8
triadic
#406FB8 #B8406F #6FB840
tetradic
#406FB8 #B840AB #B88940 #40B84D
square
#406FB8 #B840AB #B88940 #40B84D
split-complementary
#406FB8 #B84D40 #ABB840
monochromatic
#20385D #30548B #406FB8 #6A90CB #97B2DB

Accessibility & contrast

On white

5.02
#406FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#406FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406FB8
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406FB8#FFFFFF#000000##FFFFFF
##406FB81.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E75BB
Deuteranopia (green-blind)
#3D6AB6
Tritanopia (blue-blind)
#00808A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #406fb8;
/* rgb */ color: rgb(64, 111, 184);
/* oklch */ color: oklch(54.4% 0.126 258.9);
Tailwind
colors: {
  custom: {
    50: '#8197ce',
    500: '#406fb8',
    950: '#000000',
  },
}
SCSS
$custom: #406fb8;
$custom-light: #8197ce;
$custom-dark: #000000;
JSON
{
  "hex": "#406fb8",
  "rgb": {
    "r": 64,
    "g": 111,
    "b": 184
  },
  "hsl": {
    "h": 216.5,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.54413,
    "c": 0.12568,
    "h": 258.9
  },
  "luminance": 0.1592
}

Semantic roles & 50–950 ramp

primary
#406FB8
secondary
#C7B08D
accent
#A350D8
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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