#407CD2#407CD2

#407CD2 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 58.9% C 0.146 H 257.7°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#407CD2
RGBrgb(64, 124, 210)
HSLhsl(215, 62%, 54%)
HSVhsv(215, 70%, 82%)
CMYKcmyk(69.5%, 41%, 0%, 17.6%)
CIE-LABlab(52.01, 8.87, -50.05)
CIE-LCHlch(52.01, 50.83, 280.05°)
OKLaboklab(58.88% -0.0312 -0.1428)
OKLCHoklch(58.88% 0.146 257.7)
XYZxyz(20.9506, 20.1562, 63.7467)
Luminance0.2016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407CD2 #D29640
analogous
#40C5D2 #407CD2 #4D40D2
triadic
#407CD2 #D2407C #7CD240
tetradic
#407CD2 #D240C5 #D29640 #40D24D
square
#407CD2 #D240C5 #D29640 #40D24D
split-complementary
#407CD2 #D24D40 #C5D240
monochromatic
#1D437B #295FAC #407CD2 #729EDE #A3C0E9

Accessibility & contrast

On white

4.17
#407CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#407CD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407CD2
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407CD2#FFFFFF#000000##000000
##407CD21.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5483D5
Deuteranopia (green-blind)
#3C76D0
Tritanopia (blue-blind)
#00909D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #407cd2;
/* rgb */ color: rgb(64, 124, 210);
/* oklch */ color: oklch(58.9% 0.146 257.7);
Tailwind
colors: {
  custom: {
    50: '#85a1e0',
    500: '#407cd2',
    950: '#000000',
  },
}
SCSS
$custom: #407cd2;
$custom-light: #85a1e0;
$custom-dark: #000000;
JSON
{
  "hex": "#407cd2",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 210
  },
  "hsl": {
    "h": 215.342,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.58877,
    "c": 0.14619,
    "h": 257.7
  },
  "luminance": 0.20158
}

Semantic roles & 50–950 ramp

primary
#407CD2
secondary
#D6BC98
accent
#A243E5
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #407CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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