#407FDF#407FDF

#407FDF is a mid, vivid blue. Relative luminance 0.216; OKLCH L 60.3% C 0.160 H 258.7°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#407FDF
RGBrgb(64, 127, 223)
HSLhsl(216, 71%, 56%)
HSVhsv(216, 71%, 87%)
CMYKcmyk(71.3%, 43%, 0%, 12.5%)
CIE-LABlab(53.59, 11.69, -54.86)
CIE-LCHlch(53.59, 56.09, 282.03°)
OKLaboklab(60.34% -0.0313 -0.1569)
OKLCHoklch(60.34% 0.16 258.7)
XYZxyz(23.0182, 21.5940, 72.7527)
Luminance0.2160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407FDF #DFA040
analogous
#40CFDF #407FDF #5140DF
triadic
#407FDF #DF407F #7FDF40
tetradic
#407FDF #DF40CF #DFA040 #40DF51
square
#407FDF #DF40CF #DFA040 #40DF51
split-complementary
#407FDF #DF5140 #CFDF40
monochromatic
#18468D #2060C1 #407FDF #74A2E8 #A9C5F1

Accessibility & contrast

On white

3.95
#407FDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#407FDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407FDF
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407FDF#FFFFFF#000000##000000
##407FDF1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5088E3
Deuteranopia (green-blind)
#3379DD
Tritanopia (blue-blind)
#0095A4
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #407fdf;
/* rgb */ color: rgb(64, 127, 223);
/* oklch */ color: oklch(60.3% 0.160 258.7);
Tailwind
colors: {
  custom: {
    50: '#87a3e9',
    500: '#407fdf',
    950: '#000000',
  },
}
SCSS
$custom: #407fdf;
$custom-light: #87a3e9;
$custom-dark: #000000;
JSON
{
  "hex": "#407fdf",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 223
  },
  "hsl": {
    "h": 216.226,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.6034,
    "c": 0.16001,
    "h": 258.7
  },
  "luminance": 0.21596
}

Semantic roles & 50–950 ramp

primary
#407FDF
secondary
#DEC49D
accent
#A73AEE
background
#F9FAFE
surface
#F1F3FD
border
#CBCDD5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #407FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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