#407EC6#407EC6

#407EC6 is a mid, vivid cyan. Relative luminance 0.201; OKLCH L 58.6% C 0.128 H 253.7°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#407EC6
RGBrgb(64, 126, 198)
HSLhsl(212, 54%, 51%)
HSVhsv(212, 68%, 78%)
CMYKcmyk(67.7%, 36.4%, 0%, 22.4%)
CIE-LABlab(51.94, 3.40, -43.35)
CIE-LCHlch(51.94, 43.48, 274.48°)
OKLaboklab(58.61% -0.0359 -0.1232)
OKLCHoklch(58.61% 0.128 253.7)
XYZxyz(19.7645, 20.0869, 56.2507)
Luminance0.2009 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407EC6 #C68840
analogous
#40C1C6 #407EC6 #4540C6
triadic
#407EC6 #C6407E #7EC640
tetradic
#407EC6 #C640C1 #C68840 #40C645
square
#407EC6 #C640C1 #C68840 #40C645
split-complementary
#407EC6 #C64540 #C1C640
monochromatic
#20436C #2E609B #407EC6 #6F9ED4 #9EBEE2

Accessibility & contrast

On white

4.19
#407EC6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#407EC6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407EC6
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407EC6#FFFFFF#000000##000000
##407EC61.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E83C9
Deuteranopia (green-blind)
#4B76C5
Tritanopia (blue-blind)
#008F98
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #407ec6;
/* rgb */ color: rgb(64, 126, 198);
/* oklch */ color: oklch(58.6% 0.128 253.7);
Tailwind
colors: {
  custom: {
    50: '#83a3d7',
    500: '#407ec6',
    950: '#000000',
  },
}
SCSS
$custom: #407ec6;
$custom-light: #83a3d7;
$custom-dark: #000000;
JSON
{
  "hex": "#407ec6",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 198
  },
  "hsl": {
    "h": 212.239,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.58605,
    "c": 0.12829,
    "h": 253.7
  },
  "luminance": 0.20089
}

Semantic roles & 50–950 ramp

primary
#407EC6
secondary
#CEB393
accent
#994ADD
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0F14
muted
#7D7E83

Preview Lab

Preview with #407EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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