#407FDC#407FDC

#407FDC is a mid, vivid blue. Relative luminance 0.214; OKLCH L 60.2% C 0.156 H 258.2°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#407FDC
RGBrgb(64, 127, 220)
HSLhsl(216, 69%, 56%)
HSVhsv(216, 71%, 86%)
CMYKcmyk(70.9%, 42.3%, 0%, 13.7%)
CIE-LABlab(53.42, 10.61, -53.45)
CIE-LCHlch(53.42, 54.49, 281.23°)
OKLaboklab(60.15% -0.0319 -0.1528)
OKLCHoklch(60.15% 0.156 258.2)
XYZxyz(22.6173, 21.4336, 70.6414)
Luminance0.2144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407FDC #DC9D40
analogous
#40CDDC #407FDC #4F40DC
triadic
#407FDC #DC407F #7FDC40
tetradic
#407FDC #DC40CD #DC9D40 #40DC4F
square
#407FDC #DC40CD #DC9D40 #40DC4F
split-complementary
#407FDC #DC4F40 #CDDC40
monochromatic
#194689 #2361BC #407FDC #74A2E5 #A7C4EF

Accessibility & contrast

On white

3.97
#407FDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#407FDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407FDC
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407FDC#FFFFFF#000000##000000
##407FDC1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5287E0
Deuteranopia (green-blind)
#3779DA
Tritanopia (blue-blind)
#0095A3
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #407fdc;
/* rgb */ color: rgb(64, 127, 220);
/* oklch */ color: oklch(60.2% 0.156 258.2);
Tailwind
colors: {
  custom: {
    50: '#87a3e7',
    500: '#407fdc',
    950: '#000000',
  },
}
SCSS
$custom: #407fdc;
$custom-light: #87a3e7;
$custom-dark: #000000;
JSON
{
  "hex": "#407fdc",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 220
  },
  "hsl": {
    "h": 215.769,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.60151,
    "c": 0.15606,
    "h": 258.2
  },
  "luminance": 0.21436
}

Semantic roles & 50–950 ramp

primary
#407FDC
secondary
#DCC29B
accent
#A53CEC
background
#F9FAFE
surface
#F1F3FC
border
#CBCDD5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #407FDC

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

Preview Lab → · Contrast checker → · Palette generator →

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