#403687#403687

#403687 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.1% C 0.130 H 284.2°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#403687
RGBrgb(64, 54, 135)
HSLhsl(247, 43%, 37%)
HSVhsv(247, 60%, 53%)
CMYKcmyk(52.6%, 60%, 0%, 47.1%)
CIE-LABlab(28.05, 27.45, -44.12)
CIE-LCHlch(28.05, 51.96, 301.88°)
OKLaboklab(39.11% 0.032 -0.1263)
OKLCHoklch(39.11% 0.13 284.2)
XYZxyz(7.8054, 5.4772, 23.5629)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403687 #7D8736
analogous
#365587 #403687 #683687
triadic
#403687 #874036 #368740
tetradic
#403687 #873655 #7D8736 #368768
square
#403687 #873655 #7D8736 #368768
split-complementary
#403687 #876836 #558736
monochromatic
#171330 #2B255B #403687 #5547B3 #7C71C6

Accessibility & contrast

On white

10.02
#403687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#403687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403687
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403687#FFFFFF#000000##FFFFFF
##4036871.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#254959
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #403687;
/* rgb */ color: rgb(64, 54, 135);
/* oklch */ color: oklch(39.1% 0.130 284.2);
Tailwind
colors: {
  custom: {
    50: '#7b6dab',
    500: '#403687',
    950: '#000000',
  },
}
SCSS
$custom: #403687;
$custom-light: #7b6dab;
$custom-dark: #000000;
JSON
{
  "hex": "#403687",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 135
  },
  "hsl": {
    "h": 247.407,
    "s": 42.857,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3911,
    "c": 0.13025,
    "h": 284.2
  },
  "luminance": 0.05478
}

Semantic roles & 50–950 ramp

primary
#403687
secondary
#A6AF6A
accent
#D355C3
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #403687

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

Preview Lab → · Contrast checker → · Palette generator →

#403687 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva