#407BD4#407BD4

#407BD4 is a mid, vivid blue. Relative luminance 0.200; OKLCH L 58.8% C 0.150 H 258.5°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#407BD4
RGBrgb(64, 123, 212)
HSLhsl(216, 63%, 54%)
HSVhsv(216, 70%, 83%)
CMYKcmyk(69.8%, 42%, 0%, 16.9%)
CIE-LABlab(51.85, 10.20, -51.45)
CIE-LCHlch(51.85, 52.45, 281.22°)
OKLaboklab(58.78% -0.0299 -0.147)
OKLCHoklch(58.78% 0.15 258.5)
XYZxyz(21.0767, 20.0072, 65.0256)
Luminance0.2001 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407BD4 #D49940
analogous
#40C5D4 #407BD4 #4F40D4
triadic
#407BD4 #D4407B #7BD440
tetradic
#407BD4 #D440C5 #D49940 #40D44F
square
#407BD4 #D440C5 #D49940 #40D44F
split-complementary
#407BD4 #D44F40 #C5D440
monochromatic
#1C437D #275EAF #407BD4 #729EDF #A4C0EA

Accessibility & contrast

On white

4.20
#407BD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#407BD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407BD4
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407BD4#FFFFFF#000000##000000
##407BD41.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5183D7
Deuteranopia (green-blind)
#3875D2
Tritanopia (blue-blind)
#00909D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #407bd4;
/* rgb */ color: rgb(64, 123, 212);
/* oklch */ color: oklch(58.8% 0.150 258.5);
Tailwind
colors: {
  custom: {
    50: '#86a0e2',
    500: '#407bd4',
    950: '#000000',
  },
}
SCSS
$custom: #407bd4;
$custom-light: #86a0e2;
$custom-dark: #000000;
JSON
{
  "hex": "#407bd4",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 212
  },
  "hsl": {
    "h": 216.081,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.58783,
    "c": 0.14996,
    "h": 258.5
  },
  "luminance": 0.20009
}

Semantic roles & 50–950 ramp

primary
#407BD4
secondary
#D7BE98
accent
#A542E6
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #407BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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