#407EE2#407EE2

#407EE2 is a mid, vivid blue. Relative luminance 0.215; OKLCH L 60.3% C 0.165 H 259.6°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#407EE2
RGBrgb(64, 126, 226)
HSLhsl(217, 74%, 57%)
HSVhsv(217, 72%, 89%)
CMYKcmyk(71.7%, 44.2%, 0%, 11.4%)
CIE-LABlab(53.49, 13.38, -56.70)
CIE-LCHlch(53.49, 58.26, 283.28°)
OKLaboklab(60.32% -0.0299 -0.1623)
OKLCHoklch(60.32% 0.165 259.6)
XYZxyz(23.2977, 21.5002, 74.8589)
Luminance0.2150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407EE2 #E2A440
analogous
#40CFE2 #407EE2 #5340E2
triadic
#407EE2 #E2407E #7EE240
tetradic
#407EE2 #E240CF #E2A440 #40E253
square
#407EE2 #E240CF #E2A440 #40E253
split-complementary
#407EE2 #E25340 #CFE240
monochromatic
#164592 #1E5FC7 #407EE2 #75A2EA #AAC6F2

Accessibility & contrast

On white

3.96
#407EE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#407EE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407EE2
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407EE2#FFFFFF#000000##000000
##407EE21.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C88E6
Deuteranopia (green-blind)
#2C79E0
Tritanopia (blue-blind)
#0095A5
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #407ee2;
/* rgb */ color: rgb(64, 126, 226);
/* oklch */ color: oklch(60.3% 0.165 259.6);
Tailwind
colors: {
  custom: {
    50: '#88a2ec',
    500: '#407ee2',
    950: '#000000',
  },
}
SCSS
$custom: #407ee2;
$custom-light: #88a2ec;
$custom-dark: #000000;
JSON
{
  "hex": "#407ee2",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 226
  },
  "hsl": {
    "h": 217.037,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.60319,
    "c": 0.16508,
    "h": 259.6
  },
  "luminance": 0.21503
}

Semantic roles & 50–950 ramp

primary
#407EE2
secondary
#E0C79E
accent
#AA38F0
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0F16
muted
#7E7E84

Preview Lab

Preview with #407EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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