#407CE2#407CE2

#407CE2 is a mid, vivid blue. Relative luminance 0.210; OKLCH L 59.9% C 0.167 H 260.3°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#407CE2
RGBrgb(64, 124, 226)
HSLhsl(218, 74%, 57%)
HSVhsv(218, 72%, 89%)
CMYKcmyk(71.7%, 45.1%, 0%, 11.4%)
CIE-LABlab(52.94, 14.61, -57.59)
CIE-LCHlch(52.94, 59.41, 284.24°)
OKLaboklab(59.9% -0.0282 -0.165)
OKLCHoklch(59.9% 0.167 260.3)
XYZxyz(23.0445, 20.9938, 74.7745)
Luminance0.2100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407CE2 #E2A640
analogous
#40CDE2 #407CE2 #5540E2
triadic
#407CE2 #E2407C #7CE240
tetradic
#407CE2 #E240CD #E2A640 #40E255
square
#407CE2 #E240CD #E2A640 #40E255
split-complementary
#407CE2 #E25540 #CDE240
monochromatic
#164492 #1E5DC7 #407CE2 #75A0EA #AAC5F2

Accessibility & contrast

On white

4.04
#407CE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#407CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407CE2
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407CE2#FFFFFF#000000##000000
##407CE21.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4886E6
Deuteranopia (green-blind)
#2577E0
Tritanopia (blue-blind)
#0094A4
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #407ce2;
/* rgb */ color: rgb(64, 124, 226);
/* oklch */ color: oklch(59.9% 0.167 260.3);
Tailwind
colors: {
  custom: {
    50: '#88a1ec',
    500: '#407ce2',
    950: '#000000',
  },
}
SCSS
$custom: #407ce2;
$custom-light: #88a1ec;
$custom-dark: #000000;
JSON
{
  "hex": "#407ce2",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 226
  },
  "hsl": {
    "h": 217.778,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.59895,
    "c": 0.16736,
    "h": 260.3
  },
  "luminance": 0.20996
}

Semantic roles & 50–950 ramp

primary
#407CE2
secondary
#E0C79E
accent
#AC38F0
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #407CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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