#407AD4#407AD4

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

Color values

HEX#407AD4
RGBrgb(64, 122, 212)
HSLhsl(216, 63%, 54%)
HSVhsv(216, 70%, 83%)
CMYKcmyk(69.8%, 42.5%, 0%, 16.9%)
CIE-LABlab(51.57, 10.82, -51.90)
CIE-LCHlch(51.57, 53.01, 281.77°)
OKLaboklab(58.57% -0.0289 -0.1483)
OKLCHoklch(58.57% 0.151 259)
XYZxyz(20.9533, 19.7603, 64.9844)
Luminance0.1976 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407AD4 #D49A40
analogous
#40C4D4 #407AD4 #5040D4
triadic
#407AD4 #D4407A #7AD440
tetradic
#407AD4 #D440C4 #D49A40 #40D450
square
#407AD4 #D440C4 #D49A40 #40D450
split-complementary
#407AD4 #D45040 #C4D440
monochromatic
#1C427D #275DAF #407AD4 #729DDF #A4C0EA

Accessibility & contrast

On white

4.24
#407AD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#407AD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407AD4
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407AD4#FFFFFF#000000##000000
##407AD41.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F82D7
Deuteranopia (green-blind)
#3575D2
Tritanopia (blue-blind)
#008F9D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #407ad4;
/* rgb */ color: rgb(64, 122, 212);
/* oklch */ color: oklch(58.6% 0.151 259.0);
Tailwind
colors: {
  custom: {
    50: '#869fe2',
    500: '#407ad4',
    950: '#000000',
  },
}
SCSS
$custom: #407ad4;
$custom-light: #869fe2;
$custom-dark: #000000;
JSON
{
  "hex": "#407ad4",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 212
  },
  "hsl": {
    "h": 216.486,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.58566,
    "c": 0.15109,
    "h": 259
  },
  "luminance": 0.19763
}

Semantic roles & 50–950 ramp

primary
#407AD4
secondary
#D7BF98
accent
#A642E6
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #407AD4

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

Preview Lab → · Contrast checker → · Palette generator →

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