#406CBA#406CBA

#406CBA is a mid, vivid blue. Relative luminance 0.154; OKLCH L 53.9% C 0.132 H 261.0°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#406CBA
RGBrgb(64, 108, 186)
HSLhsl(218, 49%, 49%)
HSVhsv(218, 66%, 73%)
CMYKcmyk(65.6%, 41.9%, 0%, 27.1%)
CIE-LABlab(46.12, 10.23, -45.69)
CIE-LCHlch(46.12, 46.82, 282.63°)
OKLaboklab(53.87% -0.0207 -0.1303)
OKLCHoklch(53.87% 0.132 261)
XYZxyz(16.3367, 15.3587, 48.5484)
Luminance0.1536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CBA #BA8E40
analogous
#40A9BA #406CBA #5140BA
triadic
#406CBA #BA406C #6CBA40
tetradic
#406CBA #BA40A9 #BA8E40 #40BA51
square
#406CBA #BA40A9 #BA8E40 #40BA51
split-complementary
#406CBA #BA5140 #A9BA40
monochromatic
#21375F #30528C #406CBA #6B8ECC #99B1DC

Accessibility & contrast

On white

5.16
#406CBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#406CBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406CBA
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CBA#FFFFFF#000000##FFFFFF
##406CBA1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4873BD
Deuteranopia (green-blind)
#3568B8
Tritanopia (blue-blind)
#007E8A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #406cba;
/* rgb */ color: rgb(64, 108, 186);
/* oklch */ color: oklch(53.9% 0.132 261.0);
Tailwind
colors: {
  custom: {
    50: '#8195cf',
    500: '#406cba',
    950: '#000000',
  },
}
SCSS
$custom: #406cba;
$custom-light: #8195cf;
$custom-dark: #000000;
JSON
{
  "hex": "#406cba",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 186
  },
  "hsl": {
    "h": 218.361,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.53873,
    "c": 0.13189,
    "h": 261
  },
  "luminance": 0.1536
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #406CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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