#406BAF#406BAF

#406BAF is a mid, moderate blue. Relative luminance 0.147; OKLCH L 53.0% C 0.118 H 259.2°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#406BAF
RGBrgb(64, 107, 175)
HSLhsl(217, 46%, 47%)
HSVhsv(217, 63%, 69%)
CMYKcmyk(63.4%, 38.9%, 0%, 31.4%)
CIE-LABlab(45.22, 6.97, -40.72)
CIE-LCHlch(45.22, 41.31, 279.71°)
OKLaboklab(52.97% -0.022 -0.1157)
OKLCHoklch(52.97% 0.118 259.2)
XYZxyz(15.1072, 14.6991, 42.5902)
Luminance0.1470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406BAF #AF8440
analogous
#40A3AF #406BAF #4D40AF
triadic
#406BAF #AF406B #6BAF40
tetradic
#406BAF #AF40A3 #AF8440 #40AF4D
square
#406BAF #AF40A3 #AF8440 #40AF4D
split-complementary
#406BAF #AF4D40 #A3AF40
monochromatic
#1F3455 #305082 #406BAF #658BC7 #92ADD7

Accessibility & contrast

On white

5.33
#406BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#406BAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406BAF
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406BAF#FFFFFF#000000##FFFFFF
##406BAF1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D71B2
Deuteranopia (green-blind)
#3E66AE
Tritanopia (blue-blind)
#007A84
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #406baf;
/* rgb */ color: rgb(64, 107, 175);
/* oklch */ color: oklch(53.0% 0.118 259.2);
Tailwind
colors: {
  custom: {
    50: '#7f95c7',
    500: '#406baf',
    950: '#000000',
  },
}
SCSS
$custom: #406baf;
$custom-light: #7f95c7;
$custom-dark: #000000;
JSON
{
  "hex": "#406baf",
  "rgb": {
    "r": 64,
    "g": 107,
    "b": 175
  },
  "hsl": {
    "h": 216.757,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.52974,
    "c": 0.11778,
    "h": 259.2
  },
  "luminance": 0.14701
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #406BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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