#403A84#403A84

#403A84 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.6% C 0.120 H 283.1°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#403A84
RGBrgb(64, 58, 132)
HSLhsl(245, 39%, 37%)
HSVhsv(245, 56%, 52%)
CMYKcmyk(51.5%, 56.1%, 0%, 48.2%)
CIE-LABlab(28.85, 23.86, -40.96)
CIE-LCHlch(28.85, 47.40, 300.22°)
OKLaboklab(39.63% 0.0272 -0.1169)
OKLCHoklch(39.63% 0.12 283.1)
XYZxyz(7.7910, 5.7816, 22.5308)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A84 #7E843A
analogous
#3A5984 #403A84 #653A84
triadic
#403A84 #84403A #3A8440
tetradic
#403A84 #843A59 #7E843A #3A8465
square
#403A84 #843A59 #7E843A #3A8465
split-complementary
#403A84 #84653A #59843A
monochromatic
#17152F #2B2759 #403A84 #554DAF #7C76C3

Accessibility & contrast

On white

9.74
#403A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#403A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A84
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A84#FFFFFF#000000##FFFFFF
##403A841.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104687
Deuteranopia (green-blind)
#094282
Tritanopia (blue-blind)
#274B59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #403a84;
/* rgb */ color: rgb(64, 58, 132);
/* oklch */ color: oklch(39.6% 0.120 283.1);
Tailwind
colors: {
  custom: {
    50: '#7a70a8',
    500: '#403a84',
    950: '#000000',
  },
}
SCSS
$custom: #403a84;
$custom-light: #7a70a8;
$custom-dark: #000000;
JSON
{
  "hex": "#403a84",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 132
  },
  "hsl": {
    "h": 244.865,
    "s": 38.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39634,
    "c": 0.12007,
    "h": 283.1
  },
  "luminance": 0.05782
}

Semantic roles & 50–950 ramp

primary
#403A84
secondary
#A7AC6E
accent
#CF59C5
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #403A84

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

Preview Lab → · Contrast checker → · Palette generator →

#403A84 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva