#403A8D#403A8D

#403A8D is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.3% C 0.133 H 281.9°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#403A8D
RGBrgb(64, 58, 141)
HSLhsl(244, 42%, 39%)
HSVhsv(244, 59%, 55%)
CMYKcmyk(54.6%, 58.9%, 0%, 44.7%)
CIE-LABlab(29.51, 26.85, -45.48)
CIE-LCHlch(29.51, 52.81, 300.56°)
OKLaboklab(40.33% 0.0274 -0.1302)
OKLCHoklch(40.33% 0.133 281.9)
XYZxyz(8.4337, 6.0387, 25.9153)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A8D #878D3A
analogous
#3A5E8D #403A8D #6A3A8D
triadic
#403A8D #8D403A #3A8D40
tetradic
#403A8D #8D3A5E #878D3A #3A8D6A
square
#403A8D #8D3A5E #878D3A #3A8D6A
split-complementary
#403A8D #8D6A3A #5E8D3A
monochromatic
#191636 #2C2862 #403A8D #564EB6 #7F79C8

Accessibility & contrast

On white

9.51
#403A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#403A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A8D
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A8D#FFFFFF#000000##FFFFFF
##403A8D1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#1F4D5D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #403a8d;
/* rgb */ color: rgb(64, 58, 141);
/* oklch */ color: oklch(40.3% 0.133 281.9);
Tailwind
colors: {
  custom: {
    50: '#7c70af',
    500: '#403a8d',
    950: '#000000',
  },
}
SCSS
$custom: #403a8d;
$custom-light: #7c70af;
$custom-dark: #000000;
JSON
{
  "hex": "#403a8d",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 141
  },
  "hsl": {
    "h": 244.337,
    "s": 41.709,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40328,
    "c": 0.13308,
    "h": 281.9
  },
  "luminance": 0.06039
}

Semantic roles & 50–950 ramp

primary
#403A8D
secondary
#ADB171
accent
#D256C9
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #403A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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