#403D9C#403D9C

#403D9C is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.1% C 0.150 H 279.2°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#403D9C
RGBrgb(64, 61, 156)
HSLhsl(242, 44%, 43%)
HSVhsv(242, 61%, 61%)
CMYKcmyk(59%, 60.9%, 0%, 38.8%)
CIE-LABlab(31.41, 29.96, -51.57)
CIE-LCHlch(31.41, 59.64, 300.15°)
OKLaboklab(42.09% 0.024 -0.1481)
OKLCHoklch(42.09% 0.15 279.2)
XYZxyz(9.7819, 6.8271, 32.2483)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D9C #999C3D
analogous
#3D699C #403D9C #703D9C
triadic
#403D9C #9C403D #3D9C40
tetradic
#403D9C #9C3D69 #999C3D #3D9C70
square
#403D9C #9C3D69 #999C3D #3D9C70
split-complementary
#403D9C #9C703D #699C3D
monochromatic
#1C1B44 #2E2C70 #403D9C #5C58BE #8784CF

Accessibility & contrast

On white

8.88
#403D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#403D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D9C
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D9C#FFFFFF#000000##FFFFFF
##403D9C1.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9F
Deuteranopia (green-blind)
#00469A
Tritanopia (blue-blind)
#045466
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403d9c;
/* rgb */ color: rgb(64, 61, 156);
/* oklch */ color: oklch(42.1% 0.150 279.2);
Tailwind
colors: {
  custom: {
    50: '#7e73ba',
    500: '#403d9c',
    950: '#000000',
  },
}
SCSS
$custom: #403d9c;
$custom-light: #7e73ba;
$custom-dark: #000000;
JSON
{
  "hex": "#403d9c",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 156
  },
  "hsl": {
    "h": 241.895,
    "s": 43.779,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42094,
    "c": 0.15006,
    "h": 279.2
  },
  "luminance": 0.06828
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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