#407CD4#407CD4

#407CD4 is a mid, vivid blue. Relative luminance 0.203; OKLCH L 59.0% C 0.149 H 258.1°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#407CD4
RGBrgb(64, 124, 212)
HSLhsl(216, 63%, 54%)
HSVhsv(216, 70%, 83%)
CMYKcmyk(69.8%, 41.5%, 0%, 16.9%)
CIE-LABlab(52.13, 9.59, -51.00)
CIE-LCHlch(52.13, 51.89, 280.65°)
OKLaboklab(59% -0.0308 -0.1456)
OKLCHoklch(59% 0.149 258.1)
XYZxyz(21.2014, 20.2565, 65.0671)
Luminance0.2026 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407CD4 #D49840
analogous
#40C6D4 #407CD4 #4E40D4
triadic
#407CD4 #D4407C #7CD440
tetradic
#407CD4 #D440C6 #D49840 #40D44E
square
#407CD4 #D440C6 #D49840 #40D44E
split-complementary
#407CD4 #D44E40 #C6D440
monochromatic
#1C447D #275FAF #407CD4 #729EDF #A4C1EA

Accessibility & contrast

On white

4.16
#407CD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#407CD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407CD4
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407CD4#FFFFFF#000000##000000
##407CD41.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5284D7
Deuteranopia (green-blind)
#3A76D2
Tritanopia (blue-blind)
#00909E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #407cd4;
/* rgb */ color: rgb(64, 124, 212);
/* oklch */ color: oklch(59.0% 0.149 258.1);
Tailwind
colors: {
  custom: {
    50: '#86a1e2',
    500: '#407cd4',
    950: '#000000',
  },
}
SCSS
$custom: #407cd4;
$custom-light: #86a1e2;
$custom-dark: #000000;
JSON
{
  "hex": "#407cd4",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 212
  },
  "hsl": {
    "h": 215.676,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.59001,
    "c": 0.14884,
    "h": 258.1
  },
  "luminance": 0.20259
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #407CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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