#406CB2#406CB2

#406CB2 is a mid, vivid blue. Relative luminance 0.150; OKLCH L 53.4% C 0.121 H 259.3°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#406CB2
RGBrgb(64, 108, 178)
HSLhsl(217, 47%, 47%)
HSVhsv(217, 64%, 70%)
CMYKcmyk(64%, 39.3%, 0%, 30.2%)
CIE-LABlab(45.67, 7.40, -41.75)
CIE-LCHlch(45.67, 42.40, 280.05°)
OKLaboklab(53.38% -0.0224 -0.1187)
OKLCHoklch(53.38% 0.121 259.3)
XYZxyz(15.5099, 15.0280, 44.1942)
Luminance0.1503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CB2 #B28640
analogous
#40A5B2 #406CB2 #4D40B2
triadic
#406CB2 #B2406C #6CB240
tetradic
#406CB2 #B240A5 #B28640 #40B24D
square
#406CB2 #B240A5 #B28640 #40B24D
split-complementary
#406CB2 #B24D40 #A5B240
monochromatic
#203558 #305185 #406CB2 #678CC8 #94AED8

Accessibility & contrast

On white

5.24
#406CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#406CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406CB2
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CB2#FFFFFF#000000##FFFFFF
##406CB21.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D72B5
Deuteranopia (green-blind)
#3D67B1
Tritanopia (blue-blind)
#007C86
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #406cb2;
/* rgb */ color: rgb(64, 108, 178);
/* oklch */ color: oklch(53.4% 0.121 259.3);
Tailwind
colors: {
  custom: {
    50: '#8095c9',
    500: '#406cb2',
    950: '#000000',
  },
}
SCSS
$custom: #406cb2;
$custom-light: #8095c9;
$custom-dark: #000000;
JSON
{
  "hex": "#406cb2",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 178
  },
  "hsl": {
    "h": 216.842,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.53379,
    "c": 0.12081,
    "h": 259.3
  },
  "luminance": 0.15029
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #406CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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