#403E8A#403E8A

#403E8A is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.9% C 0.123 H 280.6°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#403E8A
RGBrgb(64, 62, 138)
HSLhsl(242, 38%, 39%)
HSVhsv(242, 55%, 54%)
CMYKcmyk(53.6%, 55.1%, 0%, 45.9%)
CIE-LABlab(30.33, 23.23, -42.31)
CIE-LCHlch(30.33, 48.27, 298.77°)
OKLaboklab(40.87% 0.0227 -0.1209)
OKLCHoklch(40.87% 0.123 280.6)
XYZxyz(8.4230, 6.3697, 24.8255)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E8A #888A3E
analogous
#3E628A #403E8A #663E8A
triadic
#403E8A #8A403E #3E8A40
tetradic
#403E8A #8A3E62 #888A3E #3E8A66
square
#403E8A #8A3E62 #888A3E #3E8A66
split-complementary
#403E8A #8A663E #628A3E
monochromatic
#191836 #2C2B60 #403E8A #5653B2 #7F7EC5

Accessibility & contrast

On white

9.23
#403E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#403E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403E8A
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E8A#FFFFFF#000000##FFFFFF
##403E8A1.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134A8D
Deuteranopia (green-blind)
#084588
Tritanopia (blue-blind)
#214F5E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #403e8a;
/* rgb */ color: rgb(64, 62, 138);
/* oklch */ color: oklch(40.9% 0.123 280.6);
Tailwind
colors: {
  custom: {
    50: '#7b73ad',
    500: '#403e8a',
    950: '#000000',
  },
}
SCSS
$custom: #403e8a;
$custom-light: #7b73ad;
$custom-dark: #000000;
JSON
{
  "hex": "#403e8a",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 138
  },
  "hsl": {
    "h": 241.579,
    "s": 38,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40866,
    "c": 0.123,
    "h": 280.6
  },
  "luminance": 0.0637
}

Semantic roles & 50–950 ramp

primary
#403E8A
secondary
#ADAF75
accent
#CE5ACB
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #403E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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