#407DEA#407DEA

#407DEA is a mid, vivid blue. Relative luminance 0.217; OKLCH L 60.6% C 0.177 H 261.0°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#407DEA
RGBrgb(64, 125, 234)
HSLhsl(218, 80%, 58%)
HSVhsv(218, 73%, 92%)
CMYKcmyk(72.6%, 46.6%, 0%, 8.2%)
CIE-LABlab(53.70, 16.87, -60.84)
CIE-LCHlch(53.70, 63.14, 285.50°)
OKLaboklab(60.64% -0.0277 -0.1745)
OKLCHoklch(60.64% 0.177 261)
XYZxyz(24.2939, 21.6951, 80.7332)
Luminance0.2170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407DEA #EAAD40
analogous
#40D2EA #407DEA #5840EA
triadic
#407DEA #EA407D #7DEA40
tetradic
#407DEA #EA40D2 #EAAD40 #40EA58
square
#407DEA #EA40D2 #EAAD40 #40EA58
split-complementary
#407DEA #EA5840 #D2EA40
monochromatic
#11449E #175CD5 #407DEA #77A3F0 #AEC8F6

Accessibility & contrast

On white

3.93
#407DEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#407DEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407DEA
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407DEA#FFFFFF#000000##000000
##407DEA1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4289EE
Deuteranopia (green-blind)
#1679E8
Tritanopia (blue-blind)
#0097A8
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #407dea;
/* rgb */ color: rgb(64, 125, 234);
/* oklch */ color: oklch(60.6% 0.177 261.0);
Tailwind
colors: {
  custom: {
    50: '#8aa2f1',
    500: '#407dea',
    950: '#000000',
  },
}
SCSS
$custom: #407dea;
$custom-light: #8aa2f1;
$custom-dark: #000000;
JSON
{
  "hex": "#407dea",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 234
  },
  "hsl": {
    "h": 218.471,
    "s": 80.189,
    "l": 58.431
  },
  "oklch": {
    "l": 0.60636,
    "c": 0.17673,
    "h": 261
  },
  "luminance": 0.21698
}

Semantic roles & 50–950 ramp

primary
#407DEA
secondary
#E5CCA1
accent
#B031F7
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0D0E17
muted
#7E7E85

Preview Lab

Preview with #407DEA

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

Preview Lab → · Contrast checker → · Palette generator →

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