#407CE1#407CE1

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

Color values

HEX#407CE1
RGBrgb(64, 124, 225)
HSLhsl(218, 73%, 57%)
HSVhsv(218, 72%, 88%)
CMYKcmyk(71.6%, 44.9%, 0%, 11.8%)
CIE-LABlab(52.88, 14.25, -57.12)
CIE-LCHlch(52.88, 58.87, 284.01°)
OKLaboklab(59.83% -0.0283 -0.1636)
OKLCHoklch(59.83% 0.166 260.2)
XYZxyz(22.9077, 20.9391, 74.0539)
Luminance0.2094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407CE1 #E1A540
analogous
#40CCE1 #407CE1 #5540E1
triadic
#407CE1 #E1407C #7CE140
tetradic
#407CE1 #E140CC #E1A540 #40E155
square
#407CE1 #E140CC #E1A540 #40E155
split-complementary
#407CE1 #E15540 #CCE140
monochromatic
#174490 #1F5DC5 #407CE1 #75A0E9 #AAC5F2

Accessibility & contrast

On white

4.05
#407CE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#407CE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407CE1
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407CE1#FFFFFF#000000##000000
##407CE11.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4886E5
Deuteranopia (green-blind)
#2777DF
Tritanopia (blue-blind)
#0094A3
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #407ce1;
/* rgb */ color: rgb(64, 124, 225);
/* oklch */ color: oklch(59.8% 0.166 260.2);
Tailwind
colors: {
  custom: {
    50: '#88a1eb',
    500: '#407ce1',
    950: '#000000',
  },
}
SCSS
$custom: #407ce1;
$custom-light: #88a1eb;
$custom-dark: #000000;
JSON
{
  "hex": "#407ce1",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 225
  },
  "hsl": {
    "h": 217.64,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.5983,
    "c": 0.16605,
    "h": 260.2
  },
  "luminance": 0.20942
}

Semantic roles & 50–950 ramp

primary
#407CE1
secondary
#DFC79D
accent
#AB38F0
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #407CE1

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

Preview Lab → · Contrast checker → · Palette generator →

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