#407AD5#407AD5

#407AD5 is a mid, vivid blue. Relative luminance 0.198; OKLCH L 58.6% C 0.152 H 259.1°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#407AD5
RGBrgb(64, 122, 213)
HSLhsl(217, 64%, 54%)
HSVhsv(217, 70%, 84%)
CMYKcmyk(70%, 42.7%, 0%, 16.5%)
CIE-LABlab(51.62, 11.18, -52.37)
CIE-LCHlch(51.62, 53.55, 282.05°)
OKLaboklab(58.63% -0.0288 -0.1497)
OKLCHoklch(58.63% 0.152 259.1)
XYZxyz(21.0798, 19.8109, 65.6508)
Luminance0.1981 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407AD5 #D59B40
analogous
#40C5D5 #407AD5 #5140D5
triadic
#407AD5 #D5407A #7AD540
tetradic
#407AD5 #D540C5 #D59B40 #40D551
square
#407AD5 #D540C5 #D59B40 #40D551
split-complementary
#407AD5 #D55140 #C5D540
monochromatic
#1C427F #275DB1 #407AD5 #729DE0 #A4C0EB

Accessibility & contrast

On white

4.23
#407AD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#407AD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407AD5
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407AD5#FFFFFF#000000##000000
##407AD51.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E82D9
Deuteranopia (green-blind)
#3475D3
Tritanopia (blue-blind)
#008F9D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #407ad5;
/* rgb */ color: rgb(64, 122, 213);
/* oklch */ color: oklch(58.6% 0.152 259.1);
Tailwind
colors: {
  custom: {
    50: '#869fe2',
    500: '#407ad5',
    950: '#000000',
  },
}
SCSS
$custom: #407ad5;
$custom-light: #869fe2;
$custom-dark: #000000;
JSON
{
  "hex": "#407ad5",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 213
  },
  "hsl": {
    "h": 216.644,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.58629,
    "c": 0.15242,
    "h": 259.1
  },
  "luminance": 0.19813
}

Semantic roles & 50–950 ramp

primary
#407AD5
secondary
#D8BF99
accent
#A641E7
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #407AD5

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

Preview Lab → · Contrast checker → · Palette generator →

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