#403E91#403E91

#403E91 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.4% C 0.133 H 279.9°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#403E91
RGBrgb(64, 62, 145)
HSLhsl(241, 40%, 41%)
HSVhsv(241, 57%, 57%)
CMYKcmyk(55.9%, 57.2%, 0%, 43.1%)
CIE-LABlab(30.83, 25.59, -45.81)
CIE-LCHlch(30.83, 52.47, 299.19°)
OKLaboklab(41.4% 0.023 -0.1312)
OKLCHoklch(41.4% 0.133 279.9)
XYZxyz(8.9462, 6.5790, 27.5810)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E91 #8F913E
analogous
#3E6591 #403E91 #693E91
triadic
#403E91 #91403E #3E9140
tetradic
#403E91 #913E65 #8F913E #3E9169
square
#403E91 #913E65 #8F913E #3E9169
split-complementary
#403E91 #91693E #65913E
monochromatic
#1A193B #2D2C66 #403E91 #5856B7 #8280C9

Accessibility & contrast

On white

9.07
#403E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#403E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403E91
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E91#FFFFFF#000000##FFFFFF
##403E911.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024C94
Deuteranopia (green-blind)
#00458F
Tritanopia (blue-blind)
#1A5161
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #403e91;
/* rgb */ color: rgb(64, 62, 145);
/* oklch */ color: oklch(41.4% 0.133 279.9);
Tailwind
colors: {
  custom: {
    50: '#7c73b2',
    500: '#403e91',
    950: '#000000',
  },
}
SCSS
$custom: #403e91;
$custom-light: #7c73b2;
$custom-dark: #000000;
JSON
{
  "hex": "#403e91",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 145
  },
  "hsl": {
    "h": 241.446,
    "s": 40.097,
    "l": 40.588
  },
  "oklch": {
    "l": 0.414,
    "c": 0.13317,
    "h": 279.9
  },
  "luminance": 0.0658
}

Semantic roles & 50–950 ramp

primary
#403E91
secondary
#B2B378
accent
#D058CD
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #403E91

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

Preview Lab → · Contrast checker → · Palette generator →

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