#403E9D#403E9D

#403E9D is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.150 H 278.8°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#403E9D
RGBrgb(64, 62, 157)
HSLhsl(241, 43%, 43%)
HSVhsv(241, 61%, 62%)
CMYKcmyk(59.2%, 60.5%, 0%, 38.4%)
CIE-LABlab(31.74, 29.66, -51.65)
CIE-LCHlch(31.74, 59.56, 299.87°)
OKLaboklab(42.36% 0.0229 -0.1484)
OKLCHoklch(42.36% 0.15 278.8)
XYZxyz(9.9208, 6.9689, 32.7141)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E9D #9B9D3E
analogous
#3E6B9D #403E9D #6F3E9D
triadic
#403E9D #9D403E #3E9D40
tetradic
#403E9D #9D3E6B #9B9D3E #3E9D6F
square
#403E9D #9D3E6B #9B9D3E #3E9D6F
split-complementary
#403E9D #9D6F3E #6B9D3E
monochromatic
#1C1B45 #2E2D71 #403E9D #5C5ABE #8886CF

Accessibility & contrast

On white

8.77
#403E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403E9D
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E9D#FFFFFF#000000##FFFFFF
##403E9D1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA0
Deuteranopia (green-blind)
#00479B
Tritanopia (blue-blind)
#015567
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #403e9d;
/* rgb */ color: rgb(64, 62, 157);
/* oklch */ color: oklch(42.4% 0.150 278.8);
Tailwind
colors: {
  custom: {
    50: '#7e73bb',
    500: '#403e9d',
    950: '#000000',
  },
}
SCSS
$custom: #403e9d;
$custom-light: #7e73bb;
$custom-dark: #000000;
JSON
{
  "hex": "#403e9d",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 157
  },
  "hsl": {
    "h": 241.263,
    "s": 43.379,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42359,
    "c": 0.15012,
    "h": 278.8
  },
  "luminance": 0.0697
}

Semantic roles & 50–950 ramp

primary
#403E9D
secondary
#B8BA7D
accent
#D355D0
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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