#407FD9#407FD9

#407FD9 is a mid, vivid blue. Relative luminance 0.213; OKLCH L 60.0% C 0.152 H 257.7°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#407FD9
RGBrgb(64, 127, 217)
HSLhsl(215, 67%, 55%)
HSVhsv(215, 71%, 85%)
CMYKcmyk(70.5%, 41.5%, 0%, 14.9%)
CIE-LABlab(53.25, 9.54, -52.03)
CIE-LCHlch(53.25, 52.90, 280.39°)
OKLaboklab(59.96% -0.0325 -0.1486)
OKLCHoklch(59.96% 0.152 257.7)
XYZxyz(22.2236, 21.2761, 68.5677)
Luminance0.2128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407FD9 #D99A40
analogous
#40CCD9 #407FD9 #4D40D9
triadic
#407FD9 #D9407F #7FD940
tetradic
#407FD9 #D940CC #D99A40 #40D94D
square
#407FD9 #D940CC #D99A40 #40D94D
split-complementary
#407FD9 #D94D40 #CCD940
monochromatic
#1A4684 #2461B7 #407FD9 #73A1E3 #A6C3ED

Accessibility & contrast

On white

4.00
#407FD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#407FD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407FD9
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407FD9#FFFFFF#000000##000000
##407FD91.004.005.265.26
#FFFFFF4.001.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5487DD
Deuteranopia (green-blind)
#3B79D7
Tritanopia (blue-blind)
#0094A1
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #407fd9;
/* rgb */ color: rgb(64, 127, 217);
/* oklch */ color: oklch(60.0% 0.152 257.7);
Tailwind
colors: {
  custom: {
    50: '#86a3e5',
    500: '#407fd9',
    950: '#000000',
  },
}
SCSS
$custom: #407fd9;
$custom-light: #86a3e5;
$custom-dark: #000000;
JSON
{
  "hex": "#407fd9",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 217
  },
  "hsl": {
    "h": 215.294,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.59964,
    "c": 0.15212,
    "h": 257.7
  },
  "luminance": 0.21278
}

Semantic roles & 50–950 ramp

primary
#407FD9
secondary
#DAC09A
accent
#A33EEA
background
#F8FAFE
surface
#F0F3FC
border
#CBCDD5
text
#0D0F16
muted
#7D7F84

Preview Lab

Preview with #407FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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