#403F9D#403F9D

#403F9D is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.149 H 278.5°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#403F9D
RGBrgb(64, 63, 157)
HSLhsl(241, 43%, 43%)
HSVhsv(241, 60%, 62%)
CMYKcmyk(59.2%, 59.9%, 0%, 38.4%)
CIE-LABlab(31.99, 29.02, -51.25)
CIE-LCHlch(31.99, 58.89, 299.52°)
OKLaboklab(42.54% 0.0219 -0.1472)
OKLCHoklch(42.54% 0.149 278.5)
XYZxyz(9.9757, 7.0786, 32.7324)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F9D #9C9D3F
analogous
#3F6D9D #403F9D #6F3F9D
triadic
#403F9D #9D403F #3F9D40
tetradic
#403F9D #9D3F6D #9C9D3F #3F9D6F
square
#403F9D #9D3F6D #9C9D3F #3F9D6F
split-complementary
#403F9D #9D6F3F #6D9D3F
monochromatic
#1C1C46 #2E2D71 #403F9D #5D5CBD #8887CF

Accessibility & contrast

On white

8.69
#403F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403F9D
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F9D#FFFFFF#000000##FFFFFF
##403F9D1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403f9d;
/* rgb */ color: rgb(64, 63, 157);
/* oklch */ color: oklch(42.5% 0.149 278.5);
Tailwind
colors: {
  custom: {
    50: '#7e74bb',
    500: '#403f9d',
    950: '#000000',
  },
}
SCSS
$custom: #403f9d;
$custom-light: #7e74bb;
$custom-dark: #000000;
JSON
{
  "hex": "#403f9d",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 157
  },
  "hsl": {
    "h": 240.638,
    "s": 42.727,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42543,
    "c": 0.14878,
    "h": 278.5
  },
  "luminance": 0.07079
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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