#407DD3#407DD3

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

Color values

HEX#407DD3
RGBrgb(64, 125, 211)
HSLhsl(215, 63%, 54%)
HSVhsv(215, 70%, 83%)
CMYKcmyk(69.7%, 40.8%, 0%, 17.3%)
CIE-LABlab(52.35, 8.62, -50.08)
CIE-LCHlch(52.35, 50.81, 279.76°)
OKLaboklab(59.16% -0.0319 -0.1429)
OKLCHoklch(59.16% 0.146 257.4)
XYZxyz(21.2016, 20.4581, 64.4468)
Luminance0.2046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407DD3 #D39640
analogous
#40C7D3 #407DD3 #4D40D3
triadic
#407DD3 #D3407D #7DD340
tetradic
#407DD3 #D340C7 #D39640 #40D34D
square
#407DD3 #D340C7 #D39640 #40D34D
split-complementary
#407DD3 #D34D40 #C7D340
monochromatic
#1D447C #2860AE #407DD3 #729FDE #A3C1EA

Accessibility & contrast

On white

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

On black

5.09
#407DD3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407DD3
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407DD3#FFFFFF#000000##000000
##407DD31.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5584D6
Deuteranopia (green-blind)
#3D77D1
Tritanopia (blue-blind)
#00919E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #407dd3;
/* rgb */ color: rgb(64, 125, 211);
/* oklch */ color: oklch(59.2% 0.146 257.4);
Tailwind
colors: {
  custom: {
    50: '#85a2e1',
    500: '#407dd3',
    950: '#000000',
  },
}
SCSS
$custom: #407dd3;
$custom-light: #85a2e1;
$custom-dark: #000000;
JSON
{
  "hex": "#407dd3",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 211
  },
  "hsl": {
    "h": 215.102,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.59157,
    "c": 0.14641,
    "h": 257.4
  },
  "luminance": 0.2046
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #407DD3

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

Preview Lab → · Contrast checker → · Palette generator →

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