#403F96#403F96

#403F96 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.0% C 0.139 H 279.1°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#403F96
RGBrgb(64, 63, 150)
HSLhsl(241, 41%, 42%)
HSVhsv(241, 58%, 59%)
CMYKcmyk(57.3%, 58%, 0%, 41.2%)
CIE-LABlab(31.45, 26.64, -47.85)
CIE-LCHlch(31.45, 54.77, 299.10°)
OKLaboklab(41.98% 0.022 -0.1372)
OKLCHoklch(41.98% 0.139 279.1)
XYZxyz(9.3951, 6.8464, 29.6747)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F96 #95963F
analogous
#3F6A96 #403F96 #6C3F96
triadic
#403F96 #96403F #3F9640
tetradic
#403F96 #963F6A #95963F #3F966C
square
#403F96 #963F6A #95963F #3F966C
split-complementary
#403F96 #966C3F #6A963F
monochromatic
#1B1B40 #2E2D6B #403F96 #5A59B9 #8584CB

Accessibility & contrast

On white

8.86
#403F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#403F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403F96
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F96#FFFFFF#000000##FFFFFF
##403F961.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E99
Deuteranopia (green-blind)
#004794
Tritanopia (blue-blind)
#125364
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403f96;
/* rgb */ color: rgb(64, 63, 150);
/* oklch */ color: oklch(42.0% 0.139 279.1);
Tailwind
colors: {
  custom: {
    50: '#7d74b5',
    500: '#403f96',
    950: '#000000',
  },
}
SCSS
$custom: #403f96;
$custom-light: #7d74b5;
$custom-dark: #000000;
JSON
{
  "hex": "#403f96",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 150
  },
  "hsl": {
    "h": 240.69,
    "s": 40.845,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41982,
    "c": 0.13892,
    "h": 279.1
  },
  "luminance": 0.06847
}

Semantic roles & 50–950 ramp

primary
#403F96
secondary
#B5B67B
accent
#D157CF
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #403F96

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

Preview Lab → · Contrast checker → · Palette generator →

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