#407FC7#407FC7

#407FC7 is a mid, vivid cyan. Relative luminance 0.204; OKLCH L 58.9% C 0.129 H 253.4°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#407FC7
RGBrgb(64, 127, 199)
HSLhsl(212, 55%, 52%)
HSVhsv(212, 68%, 78%)
CMYKcmyk(67.8%, 36.2%, 0%, 22%)
CIE-LABlab(52.28, 3.15, -43.38)
CIE-LCHlch(52.28, 43.49, 274.15°)
OKLaboklab(58.89% -0.0367 -0.1232)
OKLCHoklch(58.89% 0.129 253.4)
XYZxyz(20.0087, 20.3902, 56.9030)
Luminance0.2039 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407FC7 #C78840
analogous
#40C3C7 #407FC7 #4540C7
triadic
#407FC7 #C7407F #7FC740
tetradic
#407FC7 #C740C3 #C78840 #40C745
square
#407FC7 #C740C3 #C78840 #40C745
split-complementary
#407FC7 #C74540 #C3C740
monochromatic
#20446D #2E619C #407FC7 #6F9FD5 #9FBEE3

Accessibility & contrast

On white

4.14
#407FC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#407FC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407FC7
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407FC7#FFFFFF#000000##000000
##407FC71.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F84CA
Deuteranopia (green-blind)
#4B77C6
Tritanopia (blue-blind)
#009099
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #407fc7;
/* rgb */ color: rgb(64, 127, 199);
/* oklch */ color: oklch(58.9% 0.129 253.4);
Tailwind
colors: {
  custom: {
    50: '#83a3d8',
    500: '#407fc7',
    950: '#000000',
  },
}
SCSS
$custom: #407fc7;
$custom-light: #83a3d8;
$custom-dark: #000000;
JSON
{
  "hex": "#407fc7",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 199
  },
  "hsl": {
    "h": 212,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.58888,
    "c": 0.12858,
    "h": 253.4
  },
  "luminance": 0.20392
}

Semantic roles & 50–950 ramp

primary
#407FC7
secondary
#CFB394
accent
#994ADE
background
#F8FAFD
surface
#F0F3FA
border
#CBCDD3
text
#0C0F14
muted
#7D7F83

Preview Lab

Preview with #407FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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