#407BD7#407BD7

#407BD7 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 59.0% C 0.154 H 259.0°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#407BD7
RGBrgb(64, 123, 215)
HSLhsl(217, 65%, 55%)
HSVhsv(217, 70%, 84%)
CMYKcmyk(70.2%, 42.8%, 0%, 15.7%)
CIE-LABlab(52.02, 11.28, -52.87)
CIE-LCHlch(52.02, 54.06, 282.04°)
OKLaboklab(58.97% -0.0293 -0.1511)
OKLCHoklch(58.97% 0.154 259)
XYZxyz(21.4586, 20.1599, 67.0372)
Luminance0.2016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407BD7 #D79C40
analogous
#40C7D7 #407BD7 #5040D7
triadic
#407BD7 #D7407B #7BD740
tetradic
#407BD7 #D740C7 #D79C40 #40D750
square
#407BD7 #D740C7 #D79C40 #40D750
split-complementary
#407BD7 #D75040 #C7D740
monochromatic
#1B4381 #265DB4 #407BD7 #739EE2 #A5C1EC

Accessibility & contrast

On white

4.17
#407BD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#407BD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407BD7
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407BD7#FFFFFF#000000##000000
##407BD71.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E84DB
Deuteranopia (green-blind)
#3476D5
Tritanopia (blue-blind)
#00909E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #407bd7;
/* rgb */ color: rgb(64, 123, 215);
/* oklch */ color: oklch(59.0% 0.154 259.0);
Tailwind
colors: {
  custom: {
    50: '#86a0e4',
    500: '#407bd7',
    950: '#000000',
  },
}
SCSS
$custom: #407bd7;
$custom-light: #86a0e4;
$custom-dark: #000000;
JSON
{
  "hex": "#407bd7",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 215
  },
  "hsl": {
    "h": 216.556,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.58972,
    "c": 0.15394,
    "h": 259
  },
  "luminance": 0.20162
}

Semantic roles & 50–950 ramp

primary
#407BD7
secondary
#D9C09A
accent
#A63FE8
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0C0E15
muted
#7D7E84

Preview Lab

Preview with #407BD7

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

Preview Lab → · Contrast checker → · Palette generator →

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