#407FE1#407FE1

#407FE1 is a mid, vivid blue. Relative luminance 0.217; OKLCH L 60.5% C 0.163 H 259.0°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#407FE1
RGBrgb(64, 127, 225)
HSLhsl(217, 73%, 57%)
HSVhsv(217, 72%, 88%)
CMYKcmyk(71.6%, 43.6%, 0%, 11.8%)
CIE-LABlab(53.71, 12.41, -55.80)
CIE-LCHlch(53.71, 57.16, 282.54°)
OKLaboklab(60.47% -0.031 -0.1597)
OKLCHoklch(60.47% 0.163 259)
XYZxyz(23.2894, 21.7025, 74.1812)
Luminance0.2170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407FE1 #E1A240
analogous
#40CFE1 #407FE1 #5240E1
triadic
#407FE1 #E1407F #7FE140
tetradic
#407FE1 #E140CF #E1A240 #40E152
square
#407FE1 #E140CF #E1A240 #40E152
split-complementary
#407FE1 #E15240 #CFE140
monochromatic
#174690 #1F60C5 #407FE1 #75A2E9 #AAC6F2

Accessibility & contrast

On white

3.93
#407FE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#407FE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407FE1
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407FE1#FFFFFF#000000##000000
##407FE11.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E88E5
Deuteranopia (green-blind)
#3079DF
Tritanopia (blue-blind)
#0096A5
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #407fe1;
/* rgb */ color: rgb(64, 127, 225);
/* oklch */ color: oklch(60.5% 0.163 259.0);
Tailwind
colors: {
  custom: {
    50: '#88a3eb',
    500: '#407fe1',
    950: '#000000',
  },
}
SCSS
$custom: #407fe1;
$custom-light: #88a3eb;
$custom-dark: #000000;
JSON
{
  "hex": "#407fe1",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 225
  },
  "hsl": {
    "h": 216.522,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60468,
    "c": 0.16263,
    "h": 259
  },
  "luminance": 0.21705
}

Semantic roles & 50–950 ramp

primary
#407FE1
secondary
#DFC69D
accent
#A838F0
background
#F9FAFE
surface
#F1F3FD
border
#CBCDD5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #407FE1

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

Preview Lab → · Contrast checker → · Palette generator →

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