#403F9F#403F9F

#403F9F is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.7% C 0.152 H 278.3°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#403F9F
RGBrgb(64, 63, 159)
HSLhsl(241, 43%, 44%)
HSVhsv(241, 60%, 62%)
CMYKcmyk(59.7%, 60.4%, 0%, 37.6%)
CIE-LABlab(32.14, 29.70, -52.20)
CIE-LCHlch(32.14, 60.06, 299.64°)
OKLaboklab(42.71% 0.0219 -0.15)
OKLCHoklch(42.71% 0.152 278.3)
XYZxyz(10.1479, 7.1475, 33.6390)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F9F #9E9F3F
analogous
#3F6E9F #403F9F #703F9F
triadic
#403F9F #9F403F #3F9F40
tetradic
#403F9F #9F3F6E #9E9F3F #3F9F70
square
#403F9F #9F3F6E #9E9F3F #3F9F70
split-complementary
#403F9F #9F703F #6E9F3F
monochromatic
#1D1C47 #2E2E73 #403F9F #5E5DBF #8988D0

Accessibility & contrast

On white

8.64
#403F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#403F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403F9F
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F9F#FFFFFF#000000##FFFFFF
##403F9F1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A2
Deuteranopia (green-blind)
#00489D
Tritanopia (blue-blind)
#005669
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #403f9f;
/* rgb */ color: rgb(64, 63, 159);
/* oklch */ color: oklch(42.7% 0.152 278.3);
Tailwind
colors: {
  custom: {
    50: '#7e74bc',
    500: '#403f9f',
    950: '#000000',
  },
}
SCSS
$custom: #403f9f;
$custom-light: #7e74bc;
$custom-dark: #000000;
JSON
{
  "hex": "#403f9f",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 159
  },
  "hsl": {
    "h": 240.625,
    "s": 43.243,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42706,
    "c": 0.15157,
    "h": 278.3
  },
  "luminance": 0.07148
}

Semantic roles & 50–950 ramp

primary
#403F9F
secondary
#BABB7F
accent
#D355D2
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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