#407DD7#407DD7

#407DD7 is a mid, vivid blue. Relative luminance 0.207; OKLCH L 59.4% C 0.152 H 258.2°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#407DD7
RGBrgb(64, 125, 215)
HSLhsl(216, 65%, 55%)
HSVhsv(216, 70%, 84%)
CMYKcmyk(70.2%, 41.9%, 0%, 15.7%)
CIE-LABlab(52.58, 10.05, -51.98)
CIE-LCHlch(52.58, 52.94, 280.94°)
OKLaboklab(59.4% -0.0311 -0.1485)
OKLCHoklch(59.4% 0.152 258.2)
XYZxyz(21.7093, 20.6612, 67.1207)
Luminance0.2066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407DD7 #D79A40
analogous
#40C8D7 #407DD7 #4F40D7
triadic
#407DD7 #D7407D #7DD740
tetradic
#407DD7 #D740C8 #D79A40 #40D74F
square
#407DD7 #D740C8 #D79A40 #40D74F
split-complementary
#407DD7 #D74F40 #C8D740
monochromatic
#1B4481 #265FB4 #407DD7 #739FE2 #A5C2EC

Accessibility & contrast

On white

4.09
#407DD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#407DD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407DD7
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407DD7#FFFFFF#000000##000000
##407DD71.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5285DB
Deuteranopia (green-blind)
#3977D5
Tritanopia (blue-blind)
#00929F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #407dd7;
/* rgb */ color: rgb(64, 125, 215);
/* oklch */ color: oklch(59.4% 0.152 258.2);
Tailwind
colors: {
  custom: {
    50: '#86a2e4',
    500: '#407dd7',
    950: '#000000',
  },
}
SCSS
$custom: #407dd7;
$custom-light: #86a2e4;
$custom-dark: #000000;
JSON
{
  "hex": "#407dd7",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 215
  },
  "hsl": {
    "h": 215.762,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.59405,
    "c": 0.1517,
    "h": 258.2
  },
  "luminance": 0.20664
}

Semantic roles & 50–950 ramp

primary
#407DD7
secondary
#D9C09A
accent
#A43FE8
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0C0F15
muted
#7D7E84

Preview Lab

Preview with #407DD7

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

Preview Lab → · Contrast checker → · Palette generator →

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