#407EE1#407EE1

#407EE1 is a mid, vivid blue. Relative luminance 0.214; OKLCH L 60.3% C 0.164 H 259.4°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#407EE1
RGBrgb(64, 126, 225)
HSLhsl(217, 73%, 57%)
HSVhsv(217, 72%, 88%)
CMYKcmyk(71.6%, 44%, 0%, 11.8%)
CIE-LABlab(53.43, 13.02, -56.24)
CIE-LCHlch(53.43, 57.73, 283.04°)
OKLaboklab(60.26% -0.0301 -0.161)
OKLCHoklch(60.26% 0.164 259.4)
XYZxyz(23.1609, 21.4454, 74.1383)
Luminance0.2145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407EE1 #E1A340
analogous
#40CFE1 #407EE1 #5240E1
triadic
#407EE1 #E1407E #7EE140
tetradic
#407EE1 #E140CF #E1A340 #40E152
square
#407EE1 #E140CF #E1A340 #40E152
split-complementary
#407EE1 #E15240 #CFE140
monochromatic
#174590 #1F5FC5 #407EE1 #75A2E9 #AAC5F2

Accessibility & contrast

On white

3.97
#407EE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#407EE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407EE1
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407EE1#FFFFFF#000000##000000
##407EE11.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C88E5
Deuteranopia (green-blind)
#2D79DF
Tritanopia (blue-blind)
#0095A4
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #407ee1;
/* rgb */ color: rgb(64, 126, 225);
/* oklch */ color: oklch(60.3% 0.164 259.4);
Tailwind
colors: {
  custom: {
    50: '#88a2eb',
    500: '#407ee1',
    950: '#000000',
  },
}
SCSS
$custom: #407ee1;
$custom-light: #88a2eb;
$custom-dark: #000000;
JSON
{
  "hex": "#407ee1",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 225
  },
  "hsl": {
    "h": 216.894,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60255,
    "c": 0.16377,
    "h": 259.4
  },
  "luminance": 0.21448
}

Semantic roles & 50–950 ramp

primary
#407EE1
secondary
#DFC69D
accent
#A938F0
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0F16
muted
#7E7E84

Preview Lab

Preview with #407EE1

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

Preview Lab → · Contrast checker → · Palette generator →

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