#403B8A#403B8A

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

Color values

HEX#403B8A
RGBrgb(64, 59, 138)
HSLhsl(244, 40%, 39%)
HSVhsv(244, 57%, 54%)
CMYKcmyk(53.6%, 57.2%, 0%, 45.9%)
CIE-LABlab(29.54, 25.20, -43.57)
CIE-LCHlch(29.54, 50.33, 300.04°)
OKLaboklab(40.28% 0.0262 -0.1246)
OKLCHoklch(40.28% 0.127 281.9)
XYZxyz(8.2644, 6.0524, 24.7726)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403B8A #858A3B
analogous
#3B5D8A #403B8A #673B8A
triadic
#403B8A #8A403B #3B8A40
tetradic
#403B8A #8A3B5D #858A3B #3B8A67
square
#403B8A #8A3B5D #858A3B #3B8A67
split-complementary
#403B8A #8A673B #5D8A3B
monochromatic
#181634 #2C295F #403B8A #554FB4 #7E79C6

Accessibility & contrast

On white

9.50
#403B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403B8A
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403B8A#FFFFFF#000000##FFFFFF
##403B8A1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06488D
Deuteranopia (green-blind)
#004388
Tritanopia (blue-blind)
#214D5C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #403b8a;
/* rgb */ color: rgb(64, 59, 138);
/* oklch */ color: oklch(40.3% 0.127 281.9);
Tailwind
colors: {
  custom: {
    50: '#7b71ad',
    500: '#403b8a',
    950: '#000000',
  },
}
SCSS
$custom: #403b8a;
$custom-light: #7b71ad;
$custom-dark: #000000;
JSON
{
  "hex": "#403b8a",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 138
  },
  "hsl": {
    "h": 243.797,
    "s": 40.102,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40284,
    "c": 0.12734,
    "h": 281.9
  },
  "luminance": 0.06053
}

Semantic roles & 50–950 ramp

primary
#403B8A
secondary
#ACAF71
accent
#D058C8
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #403B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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