#403E9F#403E9F

#403E9F is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.5% C 0.153 H 278.6°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#403E9F
RGBrgb(64, 62, 159)
HSLhsl(241, 44%, 43%)
HSVhsv(241, 61%, 62%)
CMYKcmyk(59.7%, 61%, 0%, 37.6%)
CIE-LABlab(31.89, 30.34, -52.61)
CIE-LCHlch(31.89, 60.73, 299.97°)
OKLaboklab(42.52% 0.0229 -0.1512)
OKLCHoklch(42.52% 0.153 278.6)
XYZxyz(10.0930, 7.0377, 33.6207)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E9F #9D9F3E
analogous
#3E6C9F #403E9F #703E9F
triadic
#403E9F #9F403E #3E9F40
tetradic
#403E9F #9F3E6C #9D9F3E #3E9F70
square
#403E9F #9F3E6C #9D9F3E #3E9F70
split-complementary
#403E9F #9F703E #6C9F3E
monochromatic
#1D1C47 #2E2D73 #403E9F #5D5BBF #8987D0

Accessibility & contrast

On white

8.72
#403E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#403E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403E9F
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E9F#FFFFFF#000000##FFFFFF
##403E9F1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA2
Deuteranopia (green-blind)
#00479D
Tritanopia (blue-blind)
#005668
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #403e9f;
/* rgb */ color: rgb(64, 62, 159);
/* oklch */ color: oklch(42.5% 0.153 278.6);
Tailwind
colors: {
  custom: {
    50: '#7f73bc',
    500: '#403e9f',
    950: '#000000',
  },
}
SCSS
$custom: #403e9f;
$custom-light: #7f73bc;
$custom-dark: #000000;
JSON
{
  "hex": "#403e9f",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 159
  },
  "hsl": {
    "h": 241.237,
    "s": 43.891,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42524,
    "c": 0.15289,
    "h": 278.6
  },
  "luminance": 0.07038
}

Semantic roles & 50–950 ramp

primary
#403E9F
secondary
#B9BB7E
accent
#D454D1
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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