#407AE2#407AE2

#407AE2 is a mid, vivid blue. Relative luminance 0.205; OKLCH L 59.5% C 0.170 H 261.0°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#407AE2
RGBrgb(64, 122, 226)
HSLhsl(219, 74%, 57%)
HSVhsv(219, 72%, 89%)
CMYKcmyk(71.7%, 46%, 0%, 11.4%)
CIE-LABlab(52.40, 15.85, -58.46)
CIE-LCHlch(52.40, 60.57, 285.17°)
OKLaboklab(59.47% -0.0265 -0.1676)
OKLCHoklch(59.47% 0.17 261)
XYZxyz(22.7964, 20.4976, 74.6918)
Luminance0.2050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407AE2 #E2A840
analogous
#40CBE2 #407AE2 #5740E2
triadic
#407AE2 #E2407A #7AE240
tetradic
#407AE2 #E240CB #E2A840 #40E257
square
#407AE2 #E240CB #E2A840 #40E257
split-complementary
#407AE2 #E25740 #CBE240
monochromatic
#164292 #1E5AC7 #407AE2 #759FEA #AAC4F2

Accessibility & contrast

On white

4.12
#407AE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#407AE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407AE2
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407AE2#FFFFFF#000000##000000
##407AE21.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4385E6
Deuteranopia (green-blind)
#1E76E0
Tritanopia (blue-blind)
#0092A3
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #407ae2;
/* rgb */ color: rgb(64, 122, 226);
/* oklch */ color: oklch(59.5% 0.170 261.0);
Tailwind
colors: {
  custom: {
    50: '#889fec',
    500: '#407ae2',
    950: '#000000',
  },
}
SCSS
$custom: #407ae2;
$custom-light: #889fec;
$custom-dark: #000000;
JSON
{
  "hex": "#407ae2",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 226
  },
  "hsl": {
    "h": 218.519,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.59474,
    "c": 0.16967,
    "h": 261
  },
  "luminance": 0.205
}

Semantic roles & 50–950 ramp

primary
#407AE2
secondary
#E0C89E
accent
#AE38F0
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #407AE2

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

Preview Lab → · Contrast checker → · Palette generator →

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