#407CD9#407CD9

#407CD9 is a mid, vivid blue. Relative luminance 0.205; OKLCH L 59.3% C 0.155 H 258.9°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#407CD9
RGBrgb(64, 124, 217)
HSLhsl(216, 67%, 55%)
HSVhsv(216, 71%, 85%)
CMYKcmyk(70.5%, 42.9%, 0%, 14.9%)
CIE-LABlab(52.41, 11.38, -53.37)
CIE-LCHlch(52.41, 54.57, 282.04°)
OKLaboklab(59.32% -0.0298 -0.1526)
OKLCHoklch(59.32% 0.155 258.9)
XYZxyz(21.8419, 20.5127, 68.4404)
Luminance0.2051 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407CD9 #D99D40
analogous
#40C8D9 #407CD9 #5140D9
triadic
#407CD9 #D9407C #7CD940
tetradic
#407CD9 #D940C8 #D99D40 #40D951
square
#407CD9 #D940C8 #D99D40 #40D951
split-complementary
#407CD9 #D95140 #C8D940
monochromatic
#1A4484 #245EB7 #407CD9 #739FE3 #A6C2ED

Accessibility & contrast

On white

4.12
#407CD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#407CD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407CD9
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407CD9#FFFFFF#000000##000000
##407CD91.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F85DD
Deuteranopia (green-blind)
#3476D7
Tritanopia (blue-blind)
#0092A0
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #407cd9;
/* rgb */ color: rgb(64, 124, 217);
/* oklch */ color: oklch(59.3% 0.155 258.9);
Tailwind
colors: {
  custom: {
    50: '#86a1e5',
    500: '#407cd9',
    950: '#000000',
  },
}
SCSS
$custom: #407cd9;
$custom-light: #86a1e5;
$custom-dark: #000000;
JSON
{
  "hex": "#407cd9",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 217
  },
  "hsl": {
    "h": 216.471,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.59315,
    "c": 0.15546,
    "h": 258.9
  },
  "luminance": 0.20515
}

Semantic roles & 50–950 ramp

primary
#407CD9
secondary
#DAC19A
accent
#A63EEA
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0D0E16
muted
#7D7E84

Preview Lab

Preview with #407CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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