#407ACC#407ACC

#407ACC is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.1% C 0.140 H 257.4°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#407ACC
RGBrgb(64, 122, 204)
HSLhsl(215, 58%, 53%)
HSVhsv(215, 69%, 80%)
CMYKcmyk(68.6%, 40.2%, 0%, 20%)
CIE-LABlab(51.11, 7.96, -48.07)
CIE-LCHlch(51.11, 48.73, 279.40°)
OKLaboklab(58.07% -0.0306 -0.1371)
OKLCHoklch(58.07% 0.14 257.4)
XYZxyz(19.9690, 19.3666, 59.8008)
Luminance0.1937 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407ACC #CC9240
analogous
#40C0CC #407ACC #4C40CC
triadic
#407ACC #CC407A #7ACC40
tetradic
#407ACC #CC40C0 #CC9240 #40CC4C
square
#407ACC #CC40C0 #CC9240 #40CC4C
split-complementary
#407ACC #CC4C40 #C0CC40
monochromatic
#1F4273 #2C5DA3 #407ACC #709CD9 #A1BDE6

Accessibility & contrast

On white

4.31
#407ACC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#407ACC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407ACC
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407ACC#FFFFFF#000000##000000
##407ACC1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5481CF
Deuteranopia (green-blind)
#3E74CA
Tritanopia (blue-blind)
#008D99
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #407acc;
/* rgb */ color: rgb(64, 122, 204);
/* oklch */ color: oklch(58.1% 0.140 257.4);
Tailwind
colors: {
  custom: {
    50: '#84a0dc',
    500: '#407acc',
    950: '#000000',
  },
}
SCSS
$custom: #407acc;
$custom-light: #84a0dc;
$custom-dark: #000000;
JSON
{
  "hex": "#407acc",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 204
  },
  "hsl": {
    "h": 215.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.5807,
    "c": 0.14044,
    "h": 257.4
  },
  "luminance": 0.19369
}

Semantic roles & 50–950 ramp

primary
#407ACC
secondary
#D2B995
accent
#A147E1
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #407ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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