#403A9F#403A9F

#403A9F is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.8% C 0.158 H 279.7°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#403A9F
RGBrgb(64, 58, 159)
HSLhsl(244, 47%, 43%)
HSVhsv(244, 64%, 62%)
CMYKcmyk(59.7%, 63.5%, 0%, 37.6%)
CIE-LABlab(30.92, 32.87, -54.19)
CIE-LCHlch(30.92, 63.38, 301.24°)
OKLaboklab(41.81% 0.0267 -0.1558)
OKLCHoklch(41.81% 0.158 279.7)
XYZxyz(9.8834, 6.6186, 33.5509)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A9F #999F3A
analogous
#3A679F #403A9F #723A9F
triadic
#403A9F #9F403A #3A9F40
tetradic
#403A9F #9F3A67 #999F3A #3A9F72
square
#403A9F #9F3A67 #999F3A #3A9F72
split-complementary
#403A9F #9F723A #679F3A
monochromatic
#1C1945 #2E2A72 #403A9F #5C55C1 #8782D1

Accessibility & contrast

On white

9.04
#403A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#403A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A9F
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A9F#FFFFFF#000000##FFFFFF
##403A9F1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#005367
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #403a9f;
/* rgb */ color: rgb(64, 58, 159);
/* oklch */ color: oklch(41.8% 0.158 279.7);
Tailwind
colors: {
  custom: {
    50: '#7f70bc',
    500: '#403a9f',
    950: '#000000',
  },
}
SCSS
$custom: #403a9f;
$custom-light: #7f70bc;
$custom-dark: #000000;
JSON
{
  "hex": "#403a9f",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 159
  },
  "hsl": {
    "h": 243.564,
    "s": 46.544,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41812,
    "c": 0.1581,
    "h": 279.7
  },
  "luminance": 0.06619
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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