#407ED6#407ED6

#407ED6 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 59.6% C 0.149 H 257.5°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#407ED6
RGBrgb(64, 126, 214)
HSLhsl(215, 65%, 55%)
HSVhsv(215, 70%, 84%)
CMYKcmyk(70.1%, 41.1%, 0%, 16.1%)
CIE-LABlab(52.80, 9.08, -51.06)
CIE-LCHlch(52.80, 51.86, 280.08°)
OKLaboklab(59.56% -0.0322 -0.1457)
OKLCHoklch(59.56% 0.149 257.5)
XYZxyz(21.7084, 20.8644, 66.4885)
Luminance0.2087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407ED6 #D69840
analogous
#40C9D6 #407ED6 #4D40D6
triadic
#407ED6 #D6407E #7ED640
tetradic
#407ED6 #D640C9 #D69840 #40D64D
square
#407ED6 #D640C9 #D69840 #40D64D
split-complementary
#407ED6 #D64D40 #C9D640
monochromatic
#1B4580 #2660B2 #407ED6 #72A0E1 #A5C2EC

Accessibility & contrast

On white

4.06
#407ED6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#407ED6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407ED6
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407ED6#FFFFFF#000000##000000
##407ED61.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5486D9
Deuteranopia (green-blind)
#3C78D4
Tritanopia (blue-blind)
#00929F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #407ed6;
/* rgb */ color: rgb(64, 126, 214);
/* oklch */ color: oklch(59.6% 0.149 257.5);
Tailwind
colors: {
  custom: {
    50: '#86a2e3',
    500: '#407ed6',
    950: '#000000',
  },
}
SCSS
$custom: #407ed6;
$custom-light: #86a2e3;
$custom-dark: #000000;
JSON
{
  "hex": "#407ed6",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 214
  },
  "hsl": {
    "h": 215.2,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.5956,
    "c": 0.14927,
    "h": 257.5
  },
  "luminance": 0.20867
}

Semantic roles & 50–950 ramp

primary
#407ED6
secondary
#D9BE99
accent
#A240E8
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0F15
muted
#7D7E83

Preview Lab

Preview with #407ED6

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

Preview Lab → · Contrast checker → · Palette generator →

#407ED6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva