#406FC2#406FC2

#406FC2 is a mid, vivid blue. Relative luminance 0.164; OKLCH L 55.0% C 0.139 H 260.9°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#406FC2
RGBrgb(64, 111, 194)
HSLhsl(218, 52%, 51%)
HSVhsv(218, 67%, 76%)
CMYKcmyk(67%, 42.8%, 0%, 23.9%)
CIE-LABlab(47.43, 11.21, -48.22)
CIE-LCHlch(47.43, 49.50, 283.09°)
OKLaboklab(55.04% -0.0221 -0.1376)
OKLCHoklch(55.04% 0.139 260.9)
XYZxyz(17.5329, 16.3522, 53.2608)
Luminance0.1635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406FC2 #C29340
analogous
#40B0C2 #406FC2 #5240C2
triadic
#406FC2 #C2406F #6FC240
tetradic
#406FC2 #C240B0 #C29340 #40C252
square
#406FC2 #C240B0 #C29340 #40C252
split-complementary
#406FC2 #C25240 #B0C240
monochromatic
#213A67 #305495 #406FC2 #6E92D1 #9DB5E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##406FC2#FFFFFF#000000##FFFFFF
##406FC21.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)
#4877C5
Deuteranopia (green-blind)
#336BC0
Tritanopia (blue-blind)
#00828F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #406fc2;
/* rgb */ color: rgb(64, 111, 194);
/* oklch */ color: oklch(55.0% 0.139 260.9);
Tailwind
colors: {
  custom: {
    50: '#8297d5',
    500: '#406fc2',
    950: '#000000',
  },
}
SCSS
$custom: #406fc2;
$custom-light: #8297d5;
$custom-dark: #000000;
JSON
{
  "hex": "#406fc2",
  "rgb": {
    "r": 64,
    "g": 111,
    "b": 194
  },
  "hsl": {
    "h": 218.308,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.55036,
    "c": 0.1394,
    "h": 260.9
  },
  "luminance": 0.16354
}

Semantic roles & 50–950 ramp

primary
#406FC2
secondary
#CCB792
accent
#A84DDB
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #406FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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