#407CE0#407CE0

#407CE0 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 59.8% C 0.165 H 260.0°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#407CE0
RGBrgb(64, 124, 224)
HSLhsl(218, 72%, 56%)
HSVhsv(218, 71%, 88%)
CMYKcmyk(71.4%, 44.6%, 0%, 12.2%)
CIE-LABlab(52.82, 13.89, -56.65)
CIE-LCHlch(52.82, 58.33, 283.78°)
OKLaboklab(59.77% -0.0285 -0.1622)
OKLCHoklch(59.77% 0.165 260)
XYZxyz(22.7717, 20.8847, 73.3376)
Luminance0.2089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407CE0 #E0A440
analogous
#40CCE0 #407CE0 #5440E0
triadic
#407CE0 #E0407C #7CE040
tetradic
#407CE0 #E040CC #E0A440 #40E054
square
#407CE0 #E040CC #E0A440 #40E054
split-complementary
#407CE0 #E05440 #CCE040
monochromatic
#17448E #205DC3 #407CE0 #75A0E9 #A9C4F1

Accessibility & contrast

On white

4.06
#407CE0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#407CE0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407CE0
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407CE0#FFFFFF#000000##000000
##407CE01.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4986E4
Deuteranopia (green-blind)
#2977DE
Tritanopia (blue-blind)
#0093A3
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #407ce0;
/* rgb */ color: rgb(64, 124, 224);
/* oklch */ color: oklch(59.8% 0.165 260.0);
Tailwind
colors: {
  custom: {
    50: '#88a1ea',
    500: '#407ce0',
    950: '#000000',
  },
}
SCSS
$custom: #407ce0;
$custom-light: #88a1ea;
$custom-dark: #000000;
JSON
{
  "hex": "#407ce0",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 224
  },
  "hsl": {
    "h": 217.5,
    "s": 72.072,
    "l": 56.471
  },
  "oklch": {
    "l": 0.59765,
    "c": 0.16473,
    "h": 260
  },
  "luminance": 0.20887
}

Semantic roles & 50–950 ramp

primary
#407CE0
secondary
#DFC69D
accent
#AB39EF
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #407CE0

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

Preview Lab → · Contrast checker → · Palette generator →

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