#403A9D#403A9D

#403A9D is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.6% C 0.155 H 279.9°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#403A9D
RGBrgb(64, 58, 157)
HSLhsl(244, 46%, 42%)
HSVhsv(244, 63%, 62%)
CMYKcmyk(59.2%, 63.1%, 0%, 38.4%)
CIE-LABlab(30.76, 32.20, -53.24)
CIE-LCHlch(30.76, 62.22, 301.17°)
OKLaboklab(41.64% 0.0268 -0.153)
OKLCHoklch(41.64% 0.155 279.9)
XYZxyz(9.7113, 6.5498, 32.6442)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A9D #979D3A
analogous
#3A669D #403A9D #713A9D
triadic
#403A9D #9D403A #3A9D40
tetradic
#403A9D #9D3A66 #979D3A #3A9D71
square
#403A9D #9D3A66 #979D3A #3A9D71
split-complementary
#403A9D #9D713A #669D3A
monochromatic
#1C1944 #2E2970 #403A9D #5B54C0 #8681D0

Accessibility & contrast

On white

9.09
#403A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#403A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A9D
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A9D#FFFFFF#000000##FFFFFF
##403A9D1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#00459B
Tritanopia (blue-blind)
#035266
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #403a9d;
/* rgb */ color: rgb(64, 58, 157);
/* oklch */ color: oklch(41.6% 0.155 279.9);
Tailwind
colors: {
  custom: {
    50: '#7e70bb',
    500: '#403a9d',
    950: '#000000',
  },
}
SCSS
$custom: #403a9d;
$custom-light: #7e70bb;
$custom-dark: #000000;
JSON
{
  "hex": "#403a9d",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 157
  },
  "hsl": {
    "h": 243.636,
    "s": 46.047,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41641,
    "c": 0.15539,
    "h": 279.9
  },
  "luminance": 0.0655
}

Semantic roles & 50–950 ramp

primary
#403A9D
secondary
#B6BA79
accent
#D652CE
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #403A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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