#407CD1#407CD1

#407CD1 is a mid, vivid blue. Relative luminance 0.201; OKLCH L 58.8% C 0.145 H 257.5°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#407CD1
RGBrgb(64, 124, 209)
HSLhsl(215, 61%, 54%)
HSVhsv(215, 69%, 82%)
CMYKcmyk(69.4%, 40.7%, 0%, 18%)
CIE-LABlab(51.96, 8.52, -49.57)
CIE-LCHlch(51.96, 50.30, 279.75°)
OKLaboklab(58.82% -0.0314 -0.1414)
OKLCHoklch(58.82% 0.145 257.5)
XYZxyz(20.8265, 20.1066, 63.0926)
Luminance0.2011 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407CD1 #D19540
analogous
#40C5D1 #407CD1 #4C40D1
triadic
#407CD1 #D1407C #7CD140
tetradic
#407CD1 #D140C5 #D19540 #40D14C
square
#407CD1 #D140C5 #D19540 #40D14C
split-complementary
#407CD1 #D14C40 #C5D140
monochromatic
#1D4379 #295FAB #407CD1 #719EDD #A3C0E9

Accessibility & contrast

On white

4.18
#407CD1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#407CD1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407CD1
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407CD1#FFFFFF#000000##000000
##407CD11.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5483D4
Deuteranopia (green-blind)
#3D76CF
Tritanopia (blue-blind)
#00909C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #407cd1;
/* rgb */ color: rgb(64, 124, 209);
/* oklch */ color: oklch(58.8% 0.145 257.5);
Tailwind
colors: {
  custom: {
    50: '#85a1df',
    500: '#407cd1',
    950: '#000000',
  },
}
SCSS
$custom: #407cd1;
$custom-light: #85a1df;
$custom-dark: #000000;
JSON
{
  "hex": "#407cd1",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 209
  },
  "hsl": {
    "h": 215.172,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.58815,
    "c": 0.14487,
    "h": 257.5
  },
  "luminance": 0.20109
}

Semantic roles & 50–950 ramp

primary
#407CD1
secondary
#D5BC97
accent
#A244E4
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #407CD1

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

Preview Lab → · Contrast checker → · Palette generator →

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