#407AFF#407AFF

#407AFF is a mid, highly saturated blue. Relative luminance 0.222; OKLCH L 61.5% C 0.207 H 263.7°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#407AFF
RGBrgb(64, 122, 255)
HSLhsl(222, 100%, 63%)
HSVhsv(222, 75%, 100%)
CMYKcmyk(74.9%, 52.2%, 0%, 0%)
CIE-LABlab(54.27, 26.29, -71.59)
CIE-LCHlch(54.27, 76.27, 290.16°)
OKLaboklab(61.5% -0.0229 -0.2062)
OKLCHoklch(61.5% 0.207 263.7)
XYZxyz(27.1175, 22.2260, 97.4492)
Luminance0.2223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407AFF #FFC540
analogous
#40DAFF #407AFF #6540FF
triadic
#407AFF #FF407A #7AFF40
tetradic
#407AFF #FF40DA #FFC540 #40FF65
square
#407AFF #FF40DA #FFC540 #40FF65
split-complementary
#407AFF #FF6540 #DAFF40
monochromatic
#003CC5 #034FFF #407AFF #7DA5FF #BACFFF

Accessibility & contrast

On white

3.86
#407AFF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#407AFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407AFF
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407AFF#FFFFFF#000000##000000
##407AFF1.003.865.455.45
#FFFFFF3.861.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#168BFF
Deuteranopia (green-blind)
#0079FC
Tritanopia (blue-blind)
#009AB1
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #407aff;
/* rgb */ color: rgb(64, 122, 255);
/* oklch */ color: oklch(61.5% 0.207 263.7);
Tailwind
colors: {
  custom: {
    50: '#8e9fff',
    500: '#407aff',
    950: '#000000',
  },
}
SCSS
$custom: #407aff;
$custom-light: #8e9fff;
$custom-dark: #000000;
JSON
{
  "hex": "#407aff",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 255
  },
  "hsl": {
    "h": 221.78,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.615,
    "c": 0.20749,
    "h": 263.7
  },
  "luminance": 0.22229
}

Semantic roles & 50–950 ramp

primary
#407AFF
secondary
#F0DBAB
accent
#A000E6
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0E0E18
muted
#7E7E86

Preview Lab

Preview with #407AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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