#407CD6#407CD6

#407CD6 is a mid, vivid blue. Relative luminance 0.204; OKLCH L 59.1% C 0.151 H 258.4°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#407CD6
RGBrgb(64, 124, 214)
HSLhsl(216, 65%, 55%)
HSVhsv(216, 70%, 84%)
CMYKcmyk(70.1%, 42.1%, 0%, 16.1%)
CIE-LABlab(52.24, 10.30, -51.95)
CIE-LCHlch(52.24, 52.96, 281.22°)
OKLaboklab(59.13% -0.0304 -0.1484)
OKLCHoklch(59.13% 0.151 258.4)
XYZxyz(21.4552, 20.3581, 66.4041)
Luminance0.2036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407CD6 #D69A40
analogous
#40C7D6 #407CD6 #4F40D6
triadic
#407CD6 #D6407C #7CD640
tetradic
#407CD6 #D640C7 #D69A40 #40D64F
square
#407CD6 #D640C7 #D69A40 #40D64F
split-complementary
#407CD6 #D64F40 #C7D640
monochromatic
#1B4480 #265EB2 #407CD6 #729FE1 #A5C1EC

Accessibility & contrast

On white

4.14
#407CD6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#407CD6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407CD6
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407CD6#FFFFFF#000000##000000
##407CD61.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5184DA
Deuteranopia (green-blind)
#3876D4
Tritanopia (blue-blind)
#00919E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #407cd6;
/* rgb */ color: rgb(64, 124, 214);
/* oklch */ color: oklch(59.1% 0.151 258.4);
Tailwind
colors: {
  custom: {
    50: '#86a1e3',
    500: '#407cd6',
    950: '#000000',
  },
}
SCSS
$custom: #407cd6;
$custom-light: #86a1e3;
$custom-dark: #000000;
JSON
{
  "hex": "#407cd6",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 214
  },
  "hsl": {
    "h": 216,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.59125,
    "c": 0.15149,
    "h": 258.4
  },
  "luminance": 0.2036
}

Semantic roles & 50–950 ramp

primary
#407CD6
secondary
#D9BF99
accent
#A540E8
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #407CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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