#403E95#403E95

#403E95 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.7% C 0.139 H 279.5°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#403E95
RGBrgb(64, 62, 149)
HSLhsl(241, 41%, 41%)
HSVhsv(241, 58%, 58%)
CMYKcmyk(57%, 58.4%, 0%, 41.6%)
CIE-LABlab(31.12, 26.95, -47.78)
CIE-LCHlch(31.12, 54.85, 299.42°)
OKLaboklab(41.71% 0.023 -0.137)
OKLCHoklch(41.71% 0.139 279.5)
XYZxyz(9.2601, 6.7046, 29.2341)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E95 #93953E
analogous
#3E6895 #403E95 #6C3E95
triadic
#403E95 #95403E #3E9540
tetradic
#403E95 #953E68 #93953E #3E956C
square
#403E95 #953E68 #93953E #3E956C
split-complementary
#403E95 #956C3E #68953E
monochromatic
#1B1A3F #2D2C6A #403E95 #5957B9 #8482CB

Accessibility & contrast

On white

8.97
#403E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403E95
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E95#FFFFFF#000000##FFFFFF
##403E951.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D98
Deuteranopia (green-blind)
#004693
Tritanopia (blue-blind)
#145263
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #403e95;
/* rgb */ color: rgb(64, 62, 149);
/* oklch */ color: oklch(41.7% 0.139 279.5);
Tailwind
colors: {
  custom: {
    50: '#7d73b5',
    500: '#403e95',
    950: '#000000',
  },
}
SCSS
$custom: #403e95;
$custom-light: #7d73b5;
$custom-dark: #000000;
JSON
{
  "hex": "#403e95",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 149
  },
  "hsl": {
    "h": 241.379,
    "s": 41.232,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41714,
    "c": 0.13888,
    "h": 279.5
  },
  "luminance": 0.06705
}

Semantic roles & 50–950 ramp

primary
#403E95
secondary
#B4B57A
accent
#D157CE
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #403E95

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

Preview Lab → · Contrast checker → · Palette generator →

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