#403D9A#403D9A

#403D9A is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.147 H 279.4°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#403D9A
RGBrgb(64, 61, 154)
HSLhsl(242, 43%, 42%)
HSVhsv(242, 60%, 60%)
CMYKcmyk(58.4%, 60.4%, 0%, 39.6%)
CIE-LABlab(31.25, 29.28, -50.61)
CIE-LCHlch(31.25, 58.47, 300.05°)
OKLaboklab(41.93% 0.024 -0.1453)
OKLCHoklch(41.93% 0.147 279.4)
XYZxyz(9.6140, 6.7599, 31.3638)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D9A #979A3D
analogous
#3D699A #403D9A #6E3D9A
triadic
#403D9A #9A403D #3D9A40
tetradic
#403D9A #9A3D69 #979A3D #3D9A6E
square
#403D9A #9A3D69 #979A3D #3D9A6E
split-complementary
#403D9A #9A6E3D #699A3D
monochromatic
#1C1A42 #2E2C6E #403D9A #5B58BD #8683CE

Accessibility & contrast

On white

8.93
#403D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#403D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D9A
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D9A#FFFFFF#000000##FFFFFF
##403D9A1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9D
Deuteranopia (green-blind)
#004698
Tritanopia (blue-blind)
#0A5365
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403d9a;
/* rgb */ color: rgb(64, 61, 154);
/* oklch */ color: oklch(41.9% 0.147 279.4);
Tailwind
colors: {
  custom: {
    50: '#7e72b8',
    500: '#403d9a',
    950: '#000000',
  },
}
SCSS
$custom: #403d9a;
$custom-light: #7e72b8;
$custom-dark: #000000;
JSON
{
  "hex": "#403d9a",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 154
  },
  "hsl": {
    "h": 241.935,
    "s": 43.256,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4193,
    "c": 0.14728,
    "h": 279.4
  },
  "luminance": 0.06761
}

Semantic roles & 50–950 ramp

primary
#403D9A
secondary
#B6B87B
accent
#D355CF
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0811
muted
#7C7B80

Preview Lab

Preview with #403D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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