#407CE3#407CE3

#407CE3 is a mid, vivid blue. Relative luminance 0.211; OKLCH L 60.0% C 0.169 H 260.4°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#407CE3
RGBrgb(64, 124, 227)
HSLhsl(218, 74%, 57%)
HSVhsv(218, 72%, 89%)
CMYKcmyk(71.8%, 45.4%, 0%, 11%)
CIE-LABlab(53.00, 14.97, -58.05)
CIE-LCHlch(53.00, 59.95, 284.46°)
OKLaboklab(59.96% -0.028 -0.1663)
OKLCHoklch(59.96% 0.169 260.4)
XYZxyz(23.1821, 21.0488, 75.4992)
Luminance0.2105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407CE3 #E3A740
analogous
#40CEE3 #407CE3 #5640E3
triadic
#407CE3 #E3407C #7CE340
tetradic
#407CE3 #E340CE #E3A740 #40E356
square
#407CE3 #E340CE #E3A740 #40E356
split-complementary
#407CE3 #E35640 #CEE340
monochromatic
#164493 #1D5CC8 #407CE3 #75A1EB #ABC5F3

Accessibility & contrast

On white

4.03
#407CE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#407CE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407CE3
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407CE3#FFFFFF#000000##000000
##407CE31.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4787E7
Deuteranopia (green-blind)
#2378E1
Tritanopia (blue-blind)
#0094A4
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #407ce3;
/* rgb */ color: rgb(64, 124, 227);
/* oklch */ color: oklch(60.0% 0.169 260.4);
Tailwind
colors: {
  custom: {
    50: '#88a1ec',
    500: '#407ce3',
    950: '#000000',
  },
}
SCSS
$custom: #407ce3;
$custom-light: #88a1ec;
$custom-dark: #000000;
JSON
{
  "hex": "#407ce3",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 227
  },
  "hsl": {
    "h": 217.914,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.59961,
    "c": 0.16868,
    "h": 260.4
  },
  "luminance": 0.21051
}

Semantic roles & 50–950 ramp

primary
#407CE3
secondary
#E1C89E
accent
#AC37F1
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #407CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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