#406BBA#406BBA

#406BBA is a mid, vivid blue. Relative luminance 0.152; OKLCH L 53.7% C 0.133 H 261.5°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#406BBA
RGBrgb(64, 107, 186)
HSLhsl(219, 49%, 49%)
HSVhsv(219, 66%, 73%)
CMYKcmyk(65.6%, 42.5%, 0%, 27.1%)
CIE-LABlab(45.84, 10.86, -46.14)
CIE-LCHlch(45.84, 47.40, 283.25°)
OKLaboklab(53.65% -0.0197 -0.1316)
OKLCHoklch(53.65% 0.133 261.5)
XYZxyz(16.2318, 15.1490, 48.5135)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406BBA #BA8F40
analogous
#40A8BA #406BBA #5240BA
triadic
#406BBA #BA406B #6BBA40
tetradic
#406BBA #BA40A8 #BA8F40 #40BA52
square
#406BBA #BA40A8 #BA8F40 #40BA52
split-complementary
#406BBA #BA5240 #A8BA40
monochromatic
#21375F #30518C #406BBA #6B8DCC #99B0DC

Accessibility & contrast

On white

5.21
#406BBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#406BBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406BBA
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406BBA#FFFFFF#000000##FFFFFF
##406BBA1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4673BD
Deuteranopia (green-blind)
#3367B8
Tritanopia (blue-blind)
#007D89
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #406bba;
/* rgb */ color: rgb(64, 107, 186);
/* oklch */ color: oklch(53.7% 0.133 261.5);
Tailwind
colors: {
  custom: {
    50: '#8194cf',
    500: '#406bba',
    950: '#000000',
  },
}
SCSS
$custom: #406bba;
$custom-light: #8194cf;
$custom-dark: #000000;
JSON
{
  "hex": "#406bba",
  "rgb": {
    "r": 64,
    "g": 107,
    "b": 186
  },
  "hsl": {
    "h": 218.852,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.53653,
    "c": 0.13306,
    "h": 261.5
  },
  "luminance": 0.15151
}

Semantic roles & 50–950 ramp

primary
#406BBA
secondary
#C8B38E
accent
#A84FD8
background
#F8F9FC
surface
#F0F1F9
border
#CBCBD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #406BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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