#407AD7#407AD7

#407AD7 is a mid, vivid blue. Relative luminance 0.199; OKLCH L 58.8% C 0.155 H 259.5°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#407AD7
RGBrgb(64, 122, 215)
HSLhsl(217, 65%, 55%)
HSVhsv(217, 70%, 84%)
CMYKcmyk(70.2%, 43.3%, 0%, 15.7%)
CIE-LABlab(51.74, 11.89, -53.32)
CIE-LCHlch(51.74, 54.63, 282.58°)
OKLaboklab(58.76% -0.0284 -0.1525)
OKLCHoklch(58.76% 0.155 259.5)
XYZxyz(21.3352, 19.9131, 66.9960)
Luminance0.1991 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407AD7 #D79D40
analogous
#40C5D7 #407AD7 #5240D7
triadic
#407AD7 #D7407A #7AD740
tetradic
#407AD7 #D740C5 #D79D40 #40D752
square
#407AD7 #D740C5 #D79D40 #40D752
split-complementary
#407AD7 #D75240 #C5D740
monochromatic
#1B4281 #265CB4 #407AD7 #739DE2 #A5C0EC

Accessibility & contrast

On white

4.21
#407AD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#407AD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407AD7
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407AD7#FFFFFF#000000##000000
##407AD71.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D83DB
Deuteranopia (green-blind)
#3275D5
Tritanopia (blue-blind)
#00909E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #407ad7;
/* rgb */ color: rgb(64, 122, 215);
/* oklch */ color: oklch(58.8% 0.155 259.5);
Tailwind
colors: {
  custom: {
    50: '#869fe4',
    500: '#407ad7',
    950: '#000000',
  },
}
SCSS
$custom: #407ad7;
$custom-light: #869fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#407ad7",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 215
  },
  "hsl": {
    "h": 216.954,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.58757,
    "c": 0.15508,
    "h": 259.5
  },
  "luminance": 0.19915
}

Semantic roles & 50–950 ramp

primary
#407AD7
secondary
#D9C19A
accent
#A73FE8
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0D0E15
muted
#7D7E84

Preview Lab

Preview with #407AD7

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

Preview Lab → · Contrast checker → · Palette generator →

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