#407DDB#407DDB

#407DDB is a mid, vivid blue. Relative luminance 0.209; OKLCH L 59.7% C 0.157 H 258.9°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#407DDB
RGBrgb(64, 125, 219)
HSLhsl(216, 68%, 55%)
HSVhsv(216, 71%, 86%)
CMYKcmyk(70.8%, 42.9%, 0%, 14.1%)
CIE-LABlab(52.81, 11.48, -53.87)
CIE-LCHlch(52.81, 55.08, 282.03°)
OKLaboklab(59.66% -0.0303 -0.154)
OKLCHoklch(59.66% 0.157 258.9)
XYZxyz(22.2295, 20.8693, 69.8607)
Luminance0.2087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407DDB #DB9E40
analogous
#40CBDB #407DDB #5040DB
triadic
#407DDB #DB407D #7DDB40
tetradic
#407DDB #DB40CB #DB9E40 #40DB50
square
#407DDB #DB40CB #DB9E40 #40DB50
split-complementary
#407DDB #DB5040 #CBDB40
monochromatic
#194587 #235FBB #407DDB #73A0E5 #A7C3EE

Accessibility & contrast

On white

4.06
#407DDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#407DDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407DDB
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407DDB#FFFFFF#000000##000000
##407DDB1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F86DF
Deuteranopia (green-blind)
#3477D9
Tritanopia (blue-blind)
#0093A1
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #407ddb;
/* rgb */ color: rgb(64, 125, 219);
/* oklch */ color: oklch(59.7% 0.157 258.9);
Tailwind
colors: {
  custom: {
    50: '#87a2e7',
    500: '#407ddb',
    950: '#000000',
  },
}
SCSS
$custom: #407ddb;
$custom-light: #87a2e7;
$custom-dark: #000000;
JSON
{
  "hex": "#407ddb",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 219
  },
  "hsl": {
    "h": 216.387,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.59657,
    "c": 0.15699,
    "h": 258.9
  },
  "luminance": 0.20872
}

Semantic roles & 50–950 ramp

primary
#407DDB
secondary
#DCC29B
accent
#A63DEB
background
#F9F9FE
surface
#F1F2FC
border
#CBCCD5
text
#0D0F16
muted
#7E7E84

Preview Lab

Preview with #407DDB

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

Preview Lab → · Contrast checker → · Palette generator →

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