#406FB2#406FB2

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

Color values

HEX#406FB2
RGBrgb(64, 111, 178)
HSLhsl(215, 47%, 47%)
HSVhsv(215, 64%, 70%)
CMYKcmyk(64%, 37.6%, 0%, 30.2%)
CIE-LABlab(46.54, 5.53, -40.37)
CIE-LCHlch(46.54, 40.75, 277.81°)
OKLaboklab(54.05% -0.0256 -0.1146)
OKLCHoklch(54.05% 0.117 257.4)
XYZxyz(15.8318, 15.6717, 44.3015)
Luminance0.1567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406FB2 #B28340
analogous
#40A8B2 #406FB2 #4A40B2
triadic
#406FB2 #B2406F #6FB240
tetradic
#406FB2 #B240A8 #B28340 #40B24A
square
#406FB2 #B240A8 #B28340 #40B24A
split-complementary
#406FB2 #B24A40 #A8B240
monochromatic
#203758 #305385 #406FB2 #678FC8 #94B0D8

Accessibility & contrast

On white

5.08
#406FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#406FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406FB2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406FB2#FFFFFF#000000##FFFFFF
##406FB21.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5274B5
Deuteranopia (green-blind)
#4269B1
Tritanopia (blue-blind)
#007E88
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #406fb2;
/* rgb */ color: rgb(64, 111, 178);
/* oklch */ color: oklch(54.1% 0.117 257.4);
Tailwind
colors: {
  custom: {
    50: '#8097c9',
    500: '#406fb2',
    950: '#000000',
  },
}
SCSS
$custom: #406fb2;
$custom-light: #8097c9;
$custom-dark: #000000;
JSON
{
  "hex": "#406fb2",
  "rgb": {
    "r": 64,
    "g": 111,
    "b": 178
  },
  "hsl": {
    "h": 215.263,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.54054,
    "c": 0.11746,
    "h": 257.4
  },
  "luminance": 0.15673
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #406FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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