#403A9B#403A9B

#403A9B is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.5% C 0.153 H 280.2°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#403A9B
RGBrgb(64, 58, 155)
HSLhsl(244, 46%, 42%)
HSVhsv(244, 63%, 61%)
CMYKcmyk(58.7%, 62.6%, 0%, 39.2%)
CIE-LABlab(30.60, 31.53, -52.29)
CIE-LCHlch(30.60, 61.06, 301.09°)
OKLaboklab(41.47% 0.027 -0.1502)
OKLCHoklch(41.47% 0.153 280.2)
XYZxyz(9.5419, 6.4820, 31.7523)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A9B #959B3A
analogous
#3A659B #403A9B #713A9B
triadic
#403A9B #9B403A #3A9B40
tetradic
#403A9B #9B3A65 #959B3A #3A9B71
square
#403A9B #9B3A65 #959B3A #3A9B71
split-complementary
#403A9B #9B713A #659B3A
monochromatic
#1B1942 #2E296E #403A9B #5A53BF #8580CF

Accessibility & contrast

On white

9.14
#403A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#403A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A9B
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A9B#FFFFFF#000000##FFFFFF
##403A9B1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#085265
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #403a9b;
/* rgb */ color: rgb(64, 58, 155);
/* oklch */ color: oklch(41.5% 0.153 280.2);
Tailwind
colors: {
  custom: {
    50: '#7e70b9',
    500: '#403a9b',
    950: '#000000',
  },
}
SCSS
$custom: #403a9b;
$custom-light: #7e70b9;
$custom-dark: #000000;
JSON
{
  "hex": "#403a9b",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 155
  },
  "hsl": {
    "h": 243.711,
    "s": 45.54,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41472,
    "c": 0.15265,
    "h": 280.2
  },
  "luminance": 0.06483
}

Semantic roles & 50–950 ramp

primary
#403A9B
secondary
#B5B978
accent
#D553CD
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #403A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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