#403EA7#403EA7

#403EA7 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.2% C 0.164 H 277.9°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#403EA7
RGBrgb(64, 62, 167)
HSLhsl(241, 46%, 45%)
HSVhsv(241, 63%, 65%)
CMYKcmyk(61.7%, 62.9%, 0%, 34.5%)
CIE-LABlab(32.53, 33.05, -56.38)
CIE-LCHlch(32.53, 65.35, 300.38°)
OKLaboklab(43.2% 0.0225 -0.1623)
OKLCHoklch(43.2% 0.164 277.9)
XYZxyz(10.8098, 7.3244, 37.3958)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EA7 #A5A73E
analogous
#3E70A7 #403EA7 #753EA7
triadic
#403EA7 #A7403E #3EA740
tetradic
#403EA7 #A73E70 #A5A73E #3EA775
square
#403EA7 #A73E70 #A5A73E #3EA775
split-complementary
#403EA7 #A7753E #70A73E
monochromatic
#1E1D4E #2F2D7A #403EA7 #615FC3 #8D8BD4

Accessibility & contrast

On white

8.52
#403EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#403EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EA7
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EA7#FFFFFF#000000##FFFFFF
##403EA71.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#0048A5
Tritanopia (blue-blind)
#00586C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #403ea7;
/* rgb */ color: rgb(64, 62, 167);
/* oklch */ color: oklch(43.2% 0.164 277.9);
Tailwind
colors: {
  custom: {
    50: '#8073c2',
    500: '#403ea7',
    950: '#000000',
  },
}
SCSS
$custom: #403ea7;
$custom-light: #8073c2;
$custom-dark: #000000;
JSON
{
  "hex": "#403ea7",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 167
  },
  "hsl": {
    "h": 241.143,
    "s": 45.852,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43196,
    "c": 0.16381,
    "h": 277.9
  },
  "luminance": 0.07325
}

Semantic roles & 50–950 ramp

primary
#403EA7
secondary
#BEBF82
accent
#D652D3
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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