#406FBA#406FBA

#406FBA is a mid, vivid blue. Relative luminance 0.160; OKLCH L 54.5% C 0.128 H 259.4°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#406FBA
RGBrgb(64, 111, 186)
HSLhsl(217, 49%, 49%)
HSVhsv(217, 66%, 73%)
CMYKcmyk(65.6%, 40.3%, 0%, 27.1%)
CIE-LABlab(46.98, 8.36, -44.32)
CIE-LCHlch(46.98, 45.10, 280.68°)
OKLaboklab(54.54% -0.0237 -0.1262)
OKLCHoklch(54.54% 0.128 259.4)
XYZxyz(16.6586, 16.0024, 48.6557)
Luminance0.1600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406FBA #BA8B40
analogous
#40ACBA #406FBA #4E40BA
triadic
#406FBA #BA406F #6FBA40
tetradic
#406FBA #BA40AC #BA8B40 #40BA4E
square
#406FBA #BA40AC #BA8B40 #40BA4E
split-complementary
#406FBA #BA4E40 #ACBA40
monochromatic
#21395F #30548C #406FBA #6B90CC #99B2DC

Accessibility & contrast

On white

5.00
#406FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#406FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406FBA
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406FBA#FFFFFF#000000##FFFFFF
##406FBA1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D76BD
Deuteranopia (green-blind)
#3B6AB8
Tritanopia (blue-blind)
#00808B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #406fba;
/* rgb */ color: rgb(64, 111, 186);
/* oklch */ color: oklch(54.5% 0.128 259.4);
Tailwind
colors: {
  custom: {
    50: '#8197cf',
    500: '#406fba',
    950: '#000000',
  },
}
SCSS
$custom: #406fba;
$custom-light: #8197cf;
$custom-dark: #000000;
JSON
{
  "hex": "#406fba",
  "rgb": {
    "r": 64,
    "g": 111,
    "b": 186
  },
  "hsl": {
    "h": 216.885,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.54535,
    "c": 0.12843,
    "h": 259.4
  },
  "luminance": 0.16004
}

Semantic roles & 50–950 ramp

primary
#406FBA
secondary
#C8B18E
accent
#A44FD8
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #406FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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