#407DC5#407DC5

#407DC5 is a mid, vivid cyan. Relative luminance 0.198; OKLCH L 58.3% C 0.128 H 254.0°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#407DC5
RGBrgb(64, 125, 197)
HSLhsl(212, 53%, 51%)
HSVhsv(212, 68%, 77%)
CMYKcmyk(67.5%, 36.5%, 0%, 22.7%)
CIE-LABlab(51.59, 3.65, -43.32)
CIE-LCHlch(51.59, 43.47, 274.82°)
OKLaboklab(58.32% -0.0352 -0.1231)
OKLCHoklch(58.32% 0.128 254)
XYZxyz(19.5223, 19.7864, 55.6028)
Luminance0.1979 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407DC5 #C58840
analogous
#40C0C5 #407DC5 #4540C5
triadic
#407DC5 #C5407D #7DC540
tetradic
#407DC5 #C540C0 #C58840 #40C545
square
#407DC5 #C540C0 #C58840 #40C545
split-complementary
#407DC5 #C54540 #C0C540
monochromatic
#20426A #2F5F99 #407DC5 #6F9DD3 #9EBDE2

Accessibility & contrast

On white

4.24
#407DC5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#407DC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407DC5
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407DC5#FFFFFF#000000##000000
##407DC51.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D82C8
Deuteranopia (green-blind)
#4A75C4
Tritanopia (blue-blind)
#008E97
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #407dc5;
/* rgb */ color: rgb(64, 125, 197);
/* oklch */ color: oklch(58.3% 0.128 254.0);
Tailwind
colors: {
  custom: {
    50: '#83a2d7',
    500: '#407dc5',
    950: '#000000',
  },
}
SCSS
$custom: #407dc5;
$custom-light: #83a2d7;
$custom-dark: #000000;
JSON
{
  "hex": "#407dc5",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 197
  },
  "hsl": {
    "h": 212.481,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.58322,
    "c": 0.12802,
    "h": 254
  },
  "luminance": 0.19788
}

Semantic roles & 50–950 ramp

primary
#407DC5
secondary
#CEB393
accent
#9A4BDD
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0F14
muted
#7D7E83

Preview Lab

Preview with #407DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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