#406FB3#406FB3

#406FB3 is a mid, moderate blue. Relative luminance 0.157; OKLCH L 54.1% C 0.119 H 257.7°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#406FB3
RGBrgb(64, 111, 179)
HSLhsl(215, 47%, 48%)
HSVhsv(215, 64%, 70%)
CMYKcmyk(64.2%, 38%, 0%, 29.8%)
CIE-LABlab(46.59, 5.89, -40.87)
CIE-LCHlch(46.59, 41.29, 278.20°)
OKLaboklab(54.11% -0.0253 -0.1161)
OKLCHoklch(54.11% 0.119 257.7)
XYZxyz(15.9326, 15.7120, 44.8322)
Luminance0.1571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406FB3 #B38440
analogous
#40A9B3 #406FB3 #4A40B3
triadic
#406FB3 #B3406F #6FB340
tetradic
#406FB3 #B340A9 #B38440 #40B34A
square
#406FB3 #B340A9 #B38440 #40B34A
split-complementary
#406FB3 #B34A40 #A9B340
monochromatic
#203759 #305386 #406FB3 #678FC9 #94B0D9

Accessibility & contrast

On white

5.07
#406FB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#406FB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406FB3
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406FB3#FFFFFF#000000##FFFFFF
##406FB31.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5174B6
Deuteranopia (green-blind)
#4169B2
Tritanopia (blue-blind)
#007F88
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #406fb3;
/* rgb */ color: rgb(64, 111, 179);
/* oklch */ color: oklch(54.1% 0.119 257.7);
Tailwind
colors: {
  custom: {
    50: '#8097ca',
    500: '#406fb3',
    950: '#000000',
  },
}
SCSS
$custom: #406fb3;
$custom-light: #8097ca;
$custom-dark: #000000;
JSON
{
  "hex": "#406fb3",
  "rgb": {
    "r": 64,
    "g": 111,
    "b": 179
  },
  "hsl": {
    "h": 215.478,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.54113,
    "c": 0.11883,
    "h": 257.7
  },
  "luminance": 0.15714
}

Semantic roles & 50–950 ramp

primary
#406FB3
secondary
#C4AD8A
accent
#A051D7
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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