#407DD4#407DD4

#407DD4 is a mid, vivid blue. Relative luminance 0.205; OKLCH L 59.2% C 0.148 H 257.6°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#407DD4
RGBrgb(64, 125, 212)
HSLhsl(215, 63%, 54%)
HSVhsv(215, 70%, 83%)
CMYKcmyk(69.8%, 41%, 0%, 16.9%)
CIE-LABlab(52.41, 8.97, -50.55)
CIE-LCHlch(52.41, 51.34, 280.07°)
OKLaboklab(59.22% -0.0317 -0.1443)
OKLCHoklch(59.22% 0.148 257.6)
XYZxyz(21.3273, 20.5084, 65.1091)
Luminance0.2051 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407DD4 #D49740
analogous
#40C7D4 #407DD4 #4D40D4
triadic
#407DD4 #D4407D #7DD440
tetradic
#407DD4 #D440C7 #D49740 #40D44D
square
#407DD4 #D440C7 #D49740 #40D44D
split-complementary
#407DD4 #D44D40 #C7D440
monochromatic
#1C447D #275FAF #407DD4 #729FDF #A4C1EA

Accessibility & contrast

On white

4.12
#407DD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#407DD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407DD4
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407DD4#FFFFFF#000000##000000
##407DD41.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5484D7
Deuteranopia (green-blind)
#3C77D2
Tritanopia (blue-blind)
#00919E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #407dd4;
/* rgb */ color: rgb(64, 125, 212);
/* oklch */ color: oklch(59.2% 0.148 257.6);
Tailwind
colors: {
  custom: {
    50: '#85a2e2',
    500: '#407dd4',
    950: '#000000',
  },
}
SCSS
$custom: #407dd4;
$custom-light: #85a2e2;
$custom-dark: #000000;
JSON
{
  "hex": "#407dd4",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 212
  },
  "hsl": {
    "h": 215.27,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.59219,
    "c": 0.14774,
    "h": 257.6
  },
  "luminance": 0.20511
}

Semantic roles & 50–950 ramp

primary
#407DD4
secondary
#D7BD98
accent
#A242E6
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0F15
muted
#7D7E83

Preview Lab

Preview with #407DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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