#407CEA#407CEA

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

Color values

HEX#407CEA
RGBrgb(64, 124, 234)
HSLhsl(219, 80%, 58%)
HSVhsv(219, 73%, 92%)
CMYKcmyk(72.6%, 47%, 0%, 8.2%)
CIE-LABlab(53.43, 17.49, -61.28)
CIE-LCHlch(53.43, 63.73, 285.93°)
OKLaboklab(60.43% -0.0269 -0.1758)
OKLCHoklch(60.43% 0.178 261.3)
XYZxyz(24.1680, 21.4432, 80.6912)
Luminance0.2145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407CEA #EAAE40
analogous
#40D1EA #407CEA #5940EA
triadic
#407CEA #EA407C #7CEA40
tetradic
#407CEA #EA40D1 #EAAE40 #40EA59
square
#407CEA #EA40D1 #EAAE40 #40EA59
split-complementary
#407CEA #EA5940 #D1EA40
monochromatic
#11439E #175AD5 #407CEA #77A2F0 #AEC8F6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407CEA#FFFFFF#000000##000000
##407CEA1.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)
#4088EE
Deuteranopia (green-blind)
#0F78E8
Tritanopia (blue-blind)
#0096A8
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #407cea;
/* rgb */ color: rgb(64, 124, 234);
/* oklch */ color: oklch(60.4% 0.178 261.3);
Tailwind
colors: {
  custom: {
    50: '#8aa1f1',
    500: '#407cea',
    950: '#000000',
  },
}
SCSS
$custom: #407cea;
$custom-light: #8aa1f1;
$custom-dark: #000000;
JSON
{
  "hex": "#407cea",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 234
  },
  "hsl": {
    "h": 218.824,
    "s": 80.189,
    "l": 58.431
  },
  "oklch": {
    "l": 0.60428,
    "c": 0.17789,
    "h": 261.3
  },
  "luminance": 0.21446
}

Semantic roles & 50–950 ramp

primary
#407CEA
secondary
#E5CDA1
accent
#B131F7
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0D0E17
muted
#7E7E85

Preview Lab

Preview with #407CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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