#406BAC#406BAC

#406BAC is a mid, moderate blue. Relative luminance 0.146; OKLCH L 52.8% C 0.114 H 258.4°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#406BAC
RGBrgb(64, 107, 172)
HSLhsl(216, 46%, 46%)
HSVhsv(216, 63%, 67%)
CMYKcmyk(62.8%, 37.8%, 0%, 32.5%)
CIE-LABlab(45.06, 5.91, -39.22)
CIE-LCHlch(45.06, 39.66, 278.57°)
OKLaboklab(52.8% -0.0228 -0.1113)
OKLCHoklch(52.8% 0.114 258.4)
XYZxyz(14.8158, 14.5826, 41.0557)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406BAC #AC8140
analogous
#40A1AC #406BAC #4B40AC
triadic
#406BAC #AC406B #6BAC40
tetradic
#406BAC #AC40A1 #AC8140 #40AC4B
square
#406BAC #AC40A1 #AC8140 #40AC4B
split-complementary
#406BAC #AC4B40 #A1AC40
monochromatic
#1F3453 #2F4F7F #406BAC #648BC5 #91ACD6

Accessibility & contrast

On white

5.36
#406BAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#406BAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406BAC
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406BAC#FFFFFF#000000##FFFFFF
##406BAC1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F70AF
Deuteranopia (green-blind)
#4066AB
Tritanopia (blue-blind)
#007A83
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #406bac;
/* rgb */ color: rgb(64, 107, 172);
/* oklch */ color: oklch(52.8% 0.114 258.4);
Tailwind
colors: {
  custom: {
    50: '#7f95c5',
    500: '#406bac',
    950: '#000000',
  },
}
SCSS
$custom: #406bac;
$custom-light: #7f95c5;
$custom-dark: #000000;
JSON
{
  "hex": "#406bac",
  "rgb": {
    "r": 64,
    "g": 107,
    "b": 172
  },
  "hsl": {
    "h": 216.111,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.52795,
    "c": 0.11362,
    "h": 258.4
  },
  "luminance": 0.14584
}

Semantic roles & 50–950 ramp

primary
#406BAC
secondary
#C1AA87
accent
#A152D5
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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