#406BB2#406BB2

#406BB2 is a mid, vivid blue. Relative luminance 0.148; OKLCH L 53.2% C 0.122 H 259.9°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#406BB2
RGBrgb(64, 107, 178)
HSLhsl(217, 47%, 47%)
HSVhsv(217, 64%, 70%)
CMYKcmyk(64%, 39.9%, 0%, 30.2%)
CIE-LABlab(45.38, 8.02, -42.21)
CIE-LCHlch(45.38, 42.96, 280.77°)
OKLaboklab(53.15% -0.0214 -0.1201)
OKLCHoklch(53.15% 0.122 259.9)
XYZxyz(15.4051, 14.8183, 44.1592)
Luminance0.1482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406BB2 #B28740
analogous
#40A4B2 #406BB2 #4E40B2
triadic
#406BB2 #B2406B #6BB240
tetradic
#406BB2 #B240A4 #B28740 #40B24E
square
#406BB2 #B240A4 #B28740 #40B24E
split-complementary
#406BB2 #B24E40 #A4B240
monochromatic
#203558 #305085 #406BB2 #678CC8 #94AED8

Accessibility & contrast

On white

5.30
#406BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#406BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406BB2
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406BB2#FFFFFF#000000##FFFFFF
##406BB21.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C71B5
Deuteranopia (green-blind)
#3B67B1
Tritanopia (blue-blind)
#007B86
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #406bb2;
/* rgb */ color: rgb(64, 107, 178);
/* oklch */ color: oklch(53.2% 0.122 259.9);
Tailwind
colors: {
  custom: {
    50: '#8094c9',
    500: '#406bb2',
    950: '#000000',
  },
}
SCSS
$custom: #406bb2;
$custom-light: #8094c9;
$custom-dark: #000000;
JSON
{
  "hex": "#406bb2",
  "rgb": {
    "r": 64,
    "g": 107,
    "b": 178
  },
  "hsl": {
    "h": 217.368,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.53155,
    "c": 0.12196,
    "h": 259.9
  },
  "luminance": 0.1482
}

Semantic roles & 50–950 ramp

primary
#406BB2
secondary
#C4AE8A
accent
#A451D7
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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