#407AD1#407AD1

#407AD1 is a mid, vivid blue. Relative luminance 0.196; OKLCH L 58.4% C 0.147 H 258.4°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#407AD1
RGBrgb(64, 122, 209)
HSLhsl(216, 61%, 54%)
HSVhsv(216, 69%, 82%)
CMYKcmyk(69.4%, 41.6%, 0%, 18%)
CIE-LABlab(51.39, 9.74, -50.47)
CIE-LCHlch(51.39, 51.40, 280.93°)
OKLaboklab(58.38% -0.0295 -0.1441)
OKLCHoklch(58.38% 0.147 258.4)
XYZxyz(20.5783, 19.6104, 63.0099)
Luminance0.1961 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407AD1 #D19740
analogous
#40C2D1 #407AD1 #4E40D1
triadic
#407AD1 #D1407A #7AD140
tetradic
#407AD1 #D140C2 #D19740 #40D14E
square
#407AD1 #D140C2 #D19740 #40D14E
split-complementary
#407AD1 #D14E40 #C2D140
monochromatic
#1D4279 #295DAB #407AD1 #719CDD #A3BFE9

Accessibility & contrast

On white

4.27
#407AD1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#407AD1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407AD1
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407AD1#FFFFFF#000000##000000
##407AD11.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5182D4
Deuteranopia (green-blind)
#3974CF
Tritanopia (blue-blind)
#008E9B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #407ad1;
/* rgb */ color: rgb(64, 122, 209);
/* oklch */ color: oklch(58.4% 0.147 258.4);
Tailwind
colors: {
  custom: {
    50: '#859fdf',
    500: '#407ad1',
    950: '#000000',
  },
}
SCSS
$custom: #407ad1;
$custom-light: #859fdf;
$custom-dark: #000000;
JSON
{
  "hex": "#407ad1",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 209
  },
  "hsl": {
    "h": 216,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.58378,
    "c": 0.14709,
    "h": 258.4
  },
  "luminance": 0.19613
}

Semantic roles & 50–950 ramp

primary
#407AD1
secondary
#D5BD97
accent
#A444E4
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #407AD1

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

Preview Lab → · Contrast checker → · Palette generator →

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