#407DE2#407DE2

#407DE2 is a mid, vivid blue. Relative luminance 0.212; OKLCH L 60.1% C 0.166 H 259.9°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#407DE2
RGBrgb(64, 125, 226)
HSLhsl(217, 74%, 57%)
HSVhsv(217, 72%, 89%)
CMYKcmyk(71.7%, 44.7%, 0%, 11.4%)
CIE-LABlab(53.22, 14.00, -57.15)
CIE-LCHlch(53.22, 58.83, 283.76°)
OKLaboklab(60.11% -0.029 -0.1637)
OKLCHoklch(60.11% 0.166 259.9)
XYZxyz(23.1705, 21.2457, 74.8165)
Luminance0.2125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407DE2 #E2A540
analogous
#40CEE2 #407DE2 #5440E2
triadic
#407DE2 #E2407D #7DE240
tetradic
#407DE2 #E240CE #E2A540 #40E254
square
#407DE2 #E240CE #E2A540 #40E254
split-complementary
#407DE2 #E25440 #CEE240
monochromatic
#164592 #1E5EC7 #407DE2 #75A1EA #AAC5F2

Accessibility & contrast

On white

4.00
#407DE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#407DE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407DE2
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407DE2#FFFFFF#000000##000000
##407DE21.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A87E6
Deuteranopia (green-blind)
#2978E0
Tritanopia (blue-blind)
#0095A4
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #407de2;
/* rgb */ color: rgb(64, 125, 226);
/* oklch */ color: oklch(60.1% 0.166 259.9);
Tailwind
colors: {
  custom: {
    50: '#88a2ec',
    500: '#407de2',
    950: '#000000',
  },
}
SCSS
$custom: #407de2;
$custom-light: #88a2ec;
$custom-dark: #000000;
JSON
{
  "hex": "#407de2",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 226
  },
  "hsl": {
    "h": 217.407,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.60107,
    "c": 0.16622,
    "h": 259.9
  },
  "luminance": 0.21248
}

Semantic roles & 50–950 ramp

primary
#407DE2
secondary
#E0C79E
accent
#AB38F0
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #407DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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