#407ED9#407ED9

#407ED9 is a mid, vivid blue. Relative luminance 0.210; OKLCH L 59.7% C 0.153 H 258.1°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#407ED9
RGBrgb(64, 126, 217)
HSLhsl(216, 67%, 55%)
HSVhsv(216, 71%, 85%)
CMYKcmyk(70.5%, 41.9%, 0%, 14.9%)
CIE-LABlab(52.97, 10.15, -52.48)
CIE-LCHlch(52.97, 53.45, 280.95°)
OKLaboklab(59.75% -0.0316 -0.1499)
OKLCHoklch(59.75% 0.153 258.1)
XYZxyz(22.0950, 21.0191, 68.5248)
Luminance0.2102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407ED9 #D99B40
analogous
#40CBD9 #407ED9 #4E40D9
triadic
#407ED9 #D9407E #7ED940
tetradic
#407ED9 #D940CB #D99B40 #40D94E
square
#407ED9 #D940CB #D99B40 #40D94E
split-complementary
#407ED9 #D94E40 #CBD940
monochromatic
#1A4584 #2460B7 #407ED9 #73A0E3 #A6C3ED

Accessibility & contrast

On white

4.04
#407ED9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#407ED9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407ED9
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407ED9#FFFFFF#000000##000000
##407ED91.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5286DD
Deuteranopia (green-blind)
#3878D7
Tritanopia (blue-blind)
#0093A1
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #407ed9;
/* rgb */ color: rgb(64, 126, 217);
/* oklch */ color: oklch(59.7% 0.153 258.1);
Tailwind
colors: {
  custom: {
    50: '#86a2e5',
    500: '#407ed9',
    950: '#000000',
  },
}
SCSS
$custom: #407ed9;
$custom-light: #86a2e5;
$custom-dark: #000000;
JSON
{
  "hex": "#407ed9",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 217
  },
  "hsl": {
    "h": 215.686,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.59747,
    "c": 0.15323,
    "h": 258.1
  },
  "luminance": 0.21021
}

Semantic roles & 50–950 ramp

primary
#407ED9
secondary
#DAC09A
accent
#A43EEA
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0D0F16
muted
#7D7E84

Preview Lab

Preview with #407ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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