#406DEA#406DEA

#406DEA is a mid, vivid blue. Relative luminance 0.180; OKLCH L 57.4% C 0.196 H 265.6°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#406DEA
RGBrgb(64, 109, 234)
HSLhsl(224, 80%, 58%)
HSVhsv(224, 73%, 92%)
CMYKcmyk(72.6%, 53.4%, 0%, 8.2%)
CIE-LABlab(49.45, 26.85, -67.70)
CIE-LCHlch(49.45, 72.83, 291.63°)
OKLaboklab(57.4% -0.015 -0.195)
OKLCHoklch(57.4% 0.196 265.6)
XYZxyz(22.4291, 17.9654, 80.1115)
Luminance0.1797 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406DEA #EABD40
analogous
#40C2EA #406DEA #6840EA
triadic
#406DEA #EA406D #6DEA40
tetradic
#406DEA #EA40C2 #EABD40 #40EA68
square
#406DEA #EA40C2 #EABD40 #40EA68
split-complementary
#406DEA #EA6840 #C2EA40
monochromatic
#11379E #174AD5 #406DEA #7797F0 #AEC1F6

Accessibility & contrast

On white

4.57
#406DEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#406DEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #406DEA
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406DEA#FFFFFF#000000##000000
##406DEA1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#017EEE
Deuteranopia (green-blind)
#006EE8
Tritanopia (blue-blind)
#008BA1
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #406dea;
/* rgb */ color: rgb(64, 109, 234);
/* oklch */ color: oklch(57.4% 0.196 265.6);
Tailwind
colors: {
  custom: {
    50: '#8a96f2',
    500: '#406dea',
    950: '#000000',
  },
}
SCSS
$custom: #406dea;
$custom-light: #8a96f2;
$custom-dark: #000000;
JSON
{
  "hex": "#406dea",
  "rgb": {
    "r": 64,
    "g": 109,
    "b": 234
  },
  "hsl": {
    "h": 224.118,
    "s": 80.189,
    "l": 58.431
  },
  "oklch": {
    "l": 0.57399,
    "c": 0.19557,
    "h": 265.6
  },
  "luminance": 0.17968
}

Semantic roles & 50–950 ramp

primary
#406DEA
secondary
#E5D3A1
accent
#C231F7
background
#F9F9FE
surface
#F2F1FD
border
#CCCBD5
text
#0D0D17
muted
#7E7E85

Preview Lab

Preview with #406DEA

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

Preview Lab → · Contrast checker → · Palette generator →

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