#407DD6#407DD6

#407DD6 is a mid, vivid blue. Relative luminance 0.206; OKLCH L 59.3% C 0.150 H 258.0°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#407DD6
RGBrgb(64, 125, 214)
HSLhsl(216, 65%, 55%)
HSVhsv(216, 70%, 84%)
CMYKcmyk(70.1%, 41.6%, 0%, 16.1%)
CIE-LABlab(52.52, 9.69, -51.50)
CIE-LCHlch(52.52, 52.41, 280.65°)
OKLaboklab(59.34% -0.0313 -0.1471)
OKLCHoklch(59.34% 0.15 258)
XYZxyz(21.5812, 20.6100, 66.4460)
Luminance0.2061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407DD6 #D69940
analogous
#40C8D6 #407DD6 #4E40D6
triadic
#407DD6 #D6407D #7DD640
tetradic
#407DD6 #D640C8 #D69940 #40D64E
square
#407DD6 #D640C8 #D69940 #40D64E
split-complementary
#407DD6 #D64E40 #C8D640
monochromatic
#1B4480 #265FB2 #407DD6 #729FE1 #A5C2EC

Accessibility & contrast

On white

4.10
#407DD6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#407DD6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407DD6
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407DD6#FFFFFF#000000##000000
##407DD61.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5385D9
Deuteranopia (green-blind)
#3A77D4
Tritanopia (blue-blind)
#00929F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #407dd6;
/* rgb */ color: rgb(64, 125, 214);
/* oklch */ color: oklch(59.3% 0.150 258.0);
Tailwind
colors: {
  custom: {
    50: '#86a2e3',
    500: '#407dd6',
    950: '#000000',
  },
}
SCSS
$custom: #407dd6;
$custom-light: #86a2e3;
$custom-dark: #000000;
JSON
{
  "hex": "#407dd6",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 214
  },
  "hsl": {
    "h": 215.6,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.59343,
    "c": 0.15038,
    "h": 258
  },
  "luminance": 0.20612
}

Semantic roles & 50–950 ramp

primary
#407DD6
secondary
#D9BF99
accent
#A440E8
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0F15
muted
#7D7E83

Preview Lab

Preview with #407DD6

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

Preview Lab → · Contrast checker → · Palette generator →

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