#403F9E#403F9E

#403F9E is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.150 H 278.4°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#403F9E
RGBrgb(64, 63, 158)
HSLhsl(241, 43%, 43%)
HSVhsv(241, 60%, 62%)
CMYKcmyk(59.5%, 60.1%, 0%, 38%)
CIE-LABlab(32.06, 29.36, -51.73)
CIE-LCHlch(32.06, 59.48, 299.58°)
OKLaboklab(42.63% 0.0219 -0.1486)
OKLCHoklch(42.63% 0.15 278.4)
XYZxyz(10.0614, 7.1129, 33.1839)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F9E #9D9E3F
analogous
#3F6D9E #403F9E #6F3F9E
triadic
#403F9E #9E403F #3F9E40
tetradic
#403F9E #9E3F6D #9D9E3F #3F9E6F
square
#403F9E #9E3F6D #9D9E3F #3F9E6F
split-complementary
#403F9E #9E6F3F #6D9E3F
monochromatic
#1D1C46 #2E2E72 #403F9E #5D5CBE #8988D0

Accessibility & contrast

On white

8.67
#403F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#403F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403F9E
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F9E#FFFFFF#000000##FFFFFF
##403F9E1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA1
Deuteranopia (green-blind)
#00489C
Tritanopia (blue-blind)
#005668
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #403f9e;
/* rgb */ color: rgb(64, 63, 158);
/* oklch */ color: oklch(42.6% 0.150 278.4);
Tailwind
colors: {
  custom: {
    50: '#7e74bb',
    500: '#403f9e',
    950: '#000000',
  },
}
SCSS
$custom: #403f9e;
$custom-light: #7e74bb;
$custom-dark: #000000;
JSON
{
  "hex": "#403f9e",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 158
  },
  "hsl": {
    "h": 240.632,
    "s": 42.986,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42625,
    "c": 0.15018,
    "h": 278.4
  },
  "luminance": 0.07114
}

Semantic roles & 50–950 ramp

primary
#403F9E
secondary
#B9BA7F
accent
#D355D1
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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