#407BD2#407BD2

#407BD2 is a mid, vivid blue. Relative luminance 0.199; OKLCH L 58.7% C 0.147 H 258.1°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#407BD2
RGBrgb(64, 123, 210)
HSLhsl(216, 62%, 54%)
HSVhsv(216, 70%, 82%)
CMYKcmyk(69.5%, 41.4%, 0%, 17.6%)
CIE-LABlab(51.73, 9.49, -50.50)
CIE-LCHlch(51.73, 51.38, 280.64°)
OKLaboklab(58.66% -0.0303 -0.1442)
OKLCHoklch(58.66% 0.147 258.1)
XYZxyz(20.8260, 19.9069, 63.7051)
Luminance0.1991 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407BD2 #D29740
analogous
#40C4D2 #407BD2 #4E40D2
triadic
#407BD2 #D2407B #7BD240
tetradic
#407BD2 #D240C4 #D29740 #40D24E
square
#407BD2 #D240C4 #D29740 #40D24E
split-complementary
#407BD2 #D24E40 #C4D240
monochromatic
#1D437B #295EAC #407BD2 #729DDE #A3BFE9

Accessibility & contrast

On white

4.22
#407BD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#407BD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407BD2
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407BD2#FFFFFF#000000##000000
##407BD21.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5283D5
Deuteranopia (green-blind)
#3A75D0
Tritanopia (blue-blind)
#008F9C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #407bd2;
/* rgb */ color: rgb(64, 123, 210);
/* oklch */ color: oklch(58.7% 0.147 258.1);
Tailwind
colors: {
  custom: {
    50: '#85a0e0',
    500: '#407bd2',
    950: '#000000',
  },
}
SCSS
$custom: #407bd2;
$custom-light: #85a0e0;
$custom-dark: #000000;
JSON
{
  "hex": "#407bd2",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 210
  },
  "hsl": {
    "h": 215.753,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.58658,
    "c": 0.14731,
    "h": 258.1
  },
  "luminance": 0.19909
}

Semantic roles & 50–950 ramp

primary
#407BD2
secondary
#D6BD98
accent
#A343E5
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #407BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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