#407EC7#407EC7

#407EC7 is a mid, vivid cyan. Relative luminance 0.201; OKLCH L 58.7% C 0.130 H 254.0°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#407EC7
RGBrgb(64, 126, 199)
HSLhsl(212, 55%, 52%)
HSVhsv(212, 68%, 78%)
CMYKcmyk(67.8%, 36.7%, 0%, 22%)
CIE-LABlab(51.99, 3.75, -43.84)
CIE-LCHlch(51.99, 44.00, 274.89°)
OKLaboklab(58.66% -0.0357 -0.1246)
OKLCHoklch(58.66% 0.13 254)
XYZxyz(19.8802, 20.1332, 56.8601)
Luminance0.2014 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407EC7 #C78940
analogous
#40C2C7 #407EC7 #4640C7
triadic
#407EC7 #C7407E #7EC740
tetradic
#407EC7 #C740C2 #C78940 #40C746
square
#407EC7 #C740C2 #C78940 #40C746
split-complementary
#407EC7 #C74640 #C2C740
monochromatic
#20436D #2E609C #407EC7 #6F9ED5 #9FBEE3

Accessibility & contrast

On white

4.18
#407EC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#407EC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407EC7
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407EC7#FFFFFF#000000##000000
##407EC71.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D83CA
Deuteranopia (green-blind)
#4A76C6
Tritanopia (blue-blind)
#008F99
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #407ec7;
/* rgb */ color: rgb(64, 126, 199);
/* oklch */ color: oklch(58.7% 0.130 254.0);
Tailwind
colors: {
  custom: {
    50: '#83a3d8',
    500: '#407ec7',
    950: '#000000',
  },
}
SCSS
$custom: #407ec7;
$custom-light: #83a3d8;
$custom-dark: #000000;
JSON
{
  "hex": "#407ec7",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 199
  },
  "hsl": {
    "h": 212.444,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.58663,
    "c": 0.1296,
    "h": 254
  },
  "luminance": 0.20135
}

Semantic roles & 50–950 ramp

primary
#407EC7
secondary
#CFB494
accent
#9A4ADE
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0F14
muted
#7D7E83

Preview Lab

Preview with #407EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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