#403E97#403E97

#403E97 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.142 H 279.3°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#403E97
RGBrgb(64, 62, 151)
HSLhsl(241, 42%, 42%)
HSVhsv(241, 59%, 59%)
CMYKcmyk(57.6%, 58.9%, 0%, 40.8%)
CIE-LABlab(31.28, 27.62, -48.75)
CIE-LCHlch(31.28, 56.03, 299.54°)
OKLaboklab(41.87% 0.023 -0.1398)
OKLCHoklch(41.87% 0.142 279.3)
XYZxyz(9.4211, 6.7690, 30.0823)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E97 #95973E
analogous
#3E6997 #403E97 #6D3E97
triadic
#403E97 #97403E #3E9740
tetradic
#403E97 #973E69 #95973E #3E976D
square
#403E97 #973E69 #95973E #3E976D
split-complementary
#403E97 #976D3E #69973E
monochromatic
#1B1A40 #2E2C6C #403E97 #5A58BA #8583CC

Accessibility & contrast

On white

8.92
#403E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#403E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403E97
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E97#FFFFFF#000000##FFFFFF
##403E971.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#105364
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403e97;
/* rgb */ color: rgb(64, 62, 151);
/* oklch */ color: oklch(41.9% 0.142 279.3);
Tailwind
colors: {
  custom: {
    50: '#7d73b6',
    500: '#403e97',
    950: '#000000',
  },
}
SCSS
$custom: #403e97;
$custom-light: #7d73b6;
$custom-dark: #000000;
JSON
{
  "hex": "#403e97",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 151
  },
  "hsl": {
    "h": 241.348,
    "s": 41.784,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41873,
    "c": 0.14171,
    "h": 279.3
  },
  "luminance": 0.0677
}

Semantic roles & 50–950 ramp

primary
#403E97
secondary
#B5B67A
accent
#D256CF
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #403E97

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

Preview Lab → · Contrast checker → · Palette generator →

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