#406DCB#406DCB

#406DCB is a mid, vivid blue. Relative luminance 0.163; OKLCH L 55.2% C 0.154 H 263.1°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#406DCB
RGBrgb(64, 109, 203)
HSLhsl(221, 57%, 52%)
HSVhsv(221, 68%, 80%)
CMYKcmyk(68.5%, 46.3%, 0%, 20.4%)
CIE-LABlab(47.41, 15.69, -53.42)
CIE-LCHlch(47.41, 55.67, 286.37°)
OKLaboklab(55.2% -0.0186 -0.153)
OKLCHoklch(55.2% 0.154 263.1)
XYZxyz(18.3587, 16.3372, 58.6742)
Luminance0.1634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406DCB #CB9E40
analogous
#40B2CB #406DCB #5940CB
triadic
#406DCB #CB406D #6DCB40
tetradic
#406DCB #CB40B2 #CB9E40 #40CB59
square
#406DCB #CB40B2 #CB9E40 #40CB59
split-complementary
#406DCB #CB5940 #B2CB40
monochromatic
#1F3A72 #2C52A2 #406DCB #7092D8 #A0B7E5

Accessibility & contrast

On white

4.92
#406DCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#406DCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406DCB
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406DCB#FFFFFF#000000##FFFFFF
##406DCB1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D77CF
Deuteranopia (green-blind)
#206AC9
Tritanopia (blue-blind)
#008392
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #406dcb;
/* rgb */ color: rgb(64, 109, 203);
/* oklch */ color: oklch(55.2% 0.154 263.1);
Tailwind
colors: {
  custom: {
    50: '#8496db',
    500: '#406dcb',
    950: '#000000',
  },
}
SCSS
$custom: #406dcb;
$custom-light: #8496db;
$custom-dark: #000000;
JSON
{
  "hex": "#406dcb",
  "rgb": {
    "r": 64,
    "g": 109,
    "b": 203
  },
  "hsl": {
    "h": 220.576,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.55195,
    "c": 0.15409,
    "h": 263.1
  },
  "luminance": 0.16339
}

Semantic roles & 50–950 ramp

primary
#406DCB
secondary
#D2BE95
accent
#AF47E0
background
#F8F9FD
surface
#F0F1FB
border
#CBCBD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #406DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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