#407FE2#407FE2

#407FE2 is a mid, vivid blue. Relative luminance 0.218; OKLCH L 60.5% C 0.164 H 259.2°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#407FE2
RGBrgb(64, 127, 226)
HSLhsl(217, 74%, 57%)
HSVhsv(217, 72%, 89%)
CMYKcmyk(71.7%, 43.8%, 0%, 11.4%)
CIE-LABlab(53.77, 12.76, -56.26)
CIE-LCHlch(53.77, 57.69, 282.78°)
OKLaboklab(60.53% -0.0308 -0.161)
OKLCHoklch(60.53% 0.164 259.2)
XYZxyz(23.4262, 21.7572, 74.9017)
Luminance0.2176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407FE2 #E2A340
analogous
#40D0E2 #407FE2 #5240E2
triadic
#407FE2 #E2407F #7FE240
tetradic
#407FE2 #E240D0 #E2A340 #40E252
square
#407FE2 #E240D0 #E2A340 #40E252
split-complementary
#407FE2 #E25240 #D0E240
monochromatic
#164692 #1E60C7 #407FE2 #75A3EA #AAC6F2

Accessibility & contrast

On white

3.92
#407FE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#407FE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407FE2
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407FE2#FFFFFF#000000##000000
##407FE21.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E89E6
Deuteranopia (green-blind)
#2F7AE0
Tritanopia (blue-blind)
#0096A5
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #407fe2;
/* rgb */ color: rgb(64, 127, 226);
/* oklch */ color: oklch(60.5% 0.164 259.2);
Tailwind
colors: {
  custom: {
    50: '#88a3ec',
    500: '#407fe2',
    950: '#000000',
  },
}
SCSS
$custom: #407fe2;
$custom-light: #88a3ec;
$custom-dark: #000000;
JSON
{
  "hex": "#407fe2",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 226
  },
  "hsl": {
    "h": 216.667,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.60532,
    "c": 0.16395,
    "h": 259.2
  },
  "luminance": 0.2176
}

Semantic roles & 50–950 ramp

primary
#407FE2
secondary
#E0C69E
accent
#A838F0
background
#F9FAFE
surface
#F1F3FD
border
#CBCDD5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #407FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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