#403D9F#403D9F

#403D9F is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.3% C 0.154 H 278.9°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#403D9F
RGBrgb(64, 61, 159)
HSLhsl(242, 45%, 43%)
HSVhsv(242, 62%, 62%)
CMYKcmyk(59.7%, 61.6%, 0%, 37.6%)
CIE-LABlab(31.65, 30.97, -53.01)
CIE-LCHlch(31.65, 61.39, 300.30°)
OKLaboklab(42.34% 0.0238 -0.1524)
OKLCHoklch(42.34% 0.154 278.9)
XYZxyz(10.0391, 6.9300, 33.6028)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D9F #9C9F3D
analogous
#3D6B9F #403D9F #713D9F
triadic
#403D9F #9F403D #3D9F40
tetradic
#403D9F #9F3D6B #9C9F3D #3D9F71
square
#403D9F #9F3D6B #9C9F3D #3D9F71
split-complementary
#403D9F #9F713D #6B9F3D
monochromatic
#1C1B47 #2E2C73 #403D9F #5D5AC0 #8886D1

Accessibility & contrast

On white

8.80
#403D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#403D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D9F
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D9F#FFFFFF#000000##FFFFFF
##403D9F1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#00479D
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403d9f;
/* rgb */ color: rgb(64, 61, 159);
/* oklch */ color: oklch(42.3% 0.154 278.9);
Tailwind
colors: {
  custom: {
    50: '#7f73bc',
    500: '#403d9f',
    950: '#000000',
  },
}
SCSS
$custom: #403d9f;
$custom-light: #7f73bc;
$custom-dark: #000000;
JSON
{
  "hex": "#403d9f",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 159
  },
  "hsl": {
    "h": 241.837,
    "s": 44.545,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42343,
    "c": 0.1542,
    "h": 278.9
  },
  "luminance": 0.06931
}

Semantic roles & 50–950 ramp

primary
#403D9F
secondary
#B9BB7D
accent
#D454D0
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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