#407ED7#407ED7

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

Color values

HEX#407ED7
RGBrgb(64, 126, 215)
HSLhsl(215, 65%, 55%)
HSVhsv(215, 70%, 84%)
CMYKcmyk(70.2%, 41.4%, 0%, 15.7%)
CIE-LABlab(52.86, 9.43, -51.53)
CIE-LCHlch(52.86, 52.39, 280.38°)
OKLaboklab(59.62% -0.032 -0.1471)
OKLCHoklch(59.62% 0.151 257.7)
XYZxyz(21.8365, 20.9157, 67.1631)
Luminance0.2092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407ED7 #D79940
analogous
#40CAD7 #407ED7 #4D40D7
triadic
#407ED7 #D7407E #7ED740
tetradic
#407ED7 #D740CA #D79940 #40D74D
square
#407ED7 #D740CA #D79940 #40D74D
split-complementary
#407ED7 #D74D40 #CAD740
monochromatic
#1B4581 #2660B4 #407ED7 #73A0E2 #A5C2EC

Accessibility & contrast

On white

4.05
#407ED7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#407ED7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407ED7
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407ED7#FFFFFF#000000##000000
##407ED71.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5486DA
Deuteranopia (green-blind)
#3B78D5
Tritanopia (blue-blind)
#0093A0
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #407ed7;
/* rgb */ color: rgb(64, 126, 215);
/* oklch */ color: oklch(59.6% 0.151 257.7);
Tailwind
colors: {
  custom: {
    50: '#86a2e4',
    500: '#407ed7',
    950: '#000000',
  },
}
SCSS
$custom: #407ed7;
$custom-light: #86a2e4;
$custom-dark: #000000;
JSON
{
  "hex": "#407ed7",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 215
  },
  "hsl": {
    "h": 215.364,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.59622,
    "c": 0.15059,
    "h": 257.7
  },
  "luminance": 0.20918
}

Semantic roles & 50–950 ramp

primary
#407ED7
secondary
#D9BF9A
accent
#A33FE8
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0C0F15
muted
#7D7E84

Preview Lab

Preview with #407ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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