#403F91#403F91

#403F91 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.6% C 0.132 H 279.6°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#403F91
RGBrgb(64, 63, 145)
HSLhsl(241, 39%, 41%)
HSVhsv(241, 57%, 57%)
CMYKcmyk(55.9%, 56.6%, 0%, 43.1%)
CIE-LABlab(31.09, 24.94, -45.39)
CIE-LCHlch(31.09, 51.79, 298.79°)
OKLaboklab(41.59% 0.0219 -0.1299)
OKLCHoklch(41.59% 0.132 279.6)
XYZxyz(9.0011, 6.6888, 27.5993)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F91 #90913F
analogous
#3F6791 #403F91 #693F91
triadic
#403F91 #91403F #3F9140
tetradic
#403F91 #913F67 #90913F #3F9169
square
#403F91 #913F67 #90913F #3F9169
split-complementary
#403F91 #91693F #67913F
monochromatic
#1A1A3C #2D2C66 #403F91 #5857B6 #8382C9

Accessibility & contrast

On white

8.98
#403F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#403F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403F91
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F91#FFFFFF#000000##FFFFFF
##403F911.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074C94
Deuteranopia (green-blind)
#00468F
Tritanopia (blue-blind)
#195261
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #403f91;
/* rgb */ color: rgb(64, 63, 145);
/* oklch */ color: oklch(41.6% 0.132 279.6);
Tailwind
colors: {
  custom: {
    50: '#7c74b2',
    500: '#403f91',
    950: '#000000',
  },
}
SCSS
$custom: #403f91;
$custom-light: #7c74b2;
$custom-dark: #000000;
JSON
{
  "hex": "#403f91",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 145
  },
  "hsl": {
    "h": 240.732,
    "s": 39.423,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41593,
    "c": 0.13176,
    "h": 279.6
  },
  "luminance": 0.06689
}

Semantic roles & 50–950 ramp

primary
#403F91
secondary
#B2B379
accent
#CF58CE
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #403F91

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

Preview Lab → · Contrast checker → · Palette generator →

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