#403D78#403D78

#403D78 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.4% C 0.097 H 283.3°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#403D78
RGBrgb(64, 61, 120)
HSLhsl(243, 33%, 35%)
HSVhsv(243, 49%, 47%)
CMYKcmyk(46.7%, 49.2%, 0%, 52.9%)
CIE-LABlab(28.86, 17.93, -33.44)
CIE-LCHlch(28.86, 37.94, 298.20°)
OKLaboklab(39.38% 0.0224 -0.0948)
OKLCHoklch(39.38% 0.097 283.3)
XYZxyz(7.1723, 5.7832, 18.5040)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D78 #75783D
analogous
#3D5778 #403D78 #5D3D78
triadic
#403D78 #78403D #3D7840
tetradic
#403D78 #783D57 #75783D #3D785D
square
#403D78 #783D57 #75783D #3D785D
split-complementary
#403D78 #785D3D #57783D
monochromatic
#151427 #2A284F #403D78 #5652A1 #7976B9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##403D78#FFFFFF#000000##FFFFFF
##403D781.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)
#25467A
Deuteranopia (green-blind)
#224277
Tritanopia (blue-blind)
#2E4954
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #403d78;
/* rgb */ color: rgb(64, 61, 120);
/* oklch */ color: oklch(39.4% 0.097 283.3);
Tailwind
colors: {
  custom: {
    50: '#78729f',
    500: '#403d78',
    950: '#000000',
  },
}
SCSS
$custom: #403d78;
$custom-light: #78729f;
$custom-dark: #000000;
JSON
{
  "hex": "#403d78",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 120
  },
  "hsl": {
    "h": 243.051,
    "s": 32.597,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39379,
    "c": 0.09742,
    "h": 283.3
  },
  "luminance": 0.05784
}

Semantic roles & 50–950 ramp

primary
#403D78
secondary
#A1A36D
accent
#C95FC3
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#09080E
muted
#7B7B7E

Preview Lab

Preview with #403D78

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

Preview Lab → · Contrast checker → · Palette generator →

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