#407EC2#407EC2

#407EC2 is a mid, vivid cyan. Relative luminance 0.199; OKLCH L 58.4% C 0.123 H 252.5°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#407EC2
RGBrgb(64, 126, 194)
HSLhsl(211, 52%, 51%)
HSVhsv(211, 67%, 76%)
CMYKcmyk(67%, 35.1%, 0%, 23.9%)
CIE-LABlab(51.73, 1.99, -41.39)
CIE-LCHlch(51.73, 41.44, 272.76°)
OKLaboklab(58.38% -0.037 -0.1174)
OKLCHoklch(58.38% 0.123 252.5)
XYZxyz(19.3092, 19.9048, 53.8529)
Luminance0.1991 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407EC2 #C28440
analogous
#40BFC2 #407EC2 #4340C2
triadic
#407EC2 #C2407E #7EC240
tetradic
#407EC2 #C240BF #C28440 #40C243
square
#407EC2 #C240BF #C28440 #40C243
split-complementary
#407EC2 #C24340 #BFC240
monochromatic
#214267 #306095 #407EC2 #6E9DD1 #9DBDE0

Accessibility & contrast

On white

4.22
#407EC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#407EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407EC2
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407EC2#FFFFFF#000000##000000
##407EC21.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6082C5
Deuteranopia (green-blind)
#4E76C1
Tritanopia (blue-blind)
#008E97
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #407ec2;
/* rgb */ color: rgb(64, 126, 194);
/* oklch */ color: oklch(58.4% 0.123 252.5);
Tailwind
colors: {
  custom: {
    50: '#82a3d5',
    500: '#407ec2',
    950: '#000000',
  },
}
SCSS
$custom: #407ec2;
$custom-light: #82a3d5;
$custom-dark: #000000;
JSON
{
  "hex": "#407ec2",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 194
  },
  "hsl": {
    "h": 211.385,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58377,
    "c": 0.12312,
    "h": 252.5
  },
  "luminance": 0.19907
}

Semantic roles & 50–950 ramp

primary
#407EC2
secondary
#CCB092
accent
#974DDB
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0F14
muted
#7D7E83

Preview Lab

Preview with #407EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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