#403F8A#403F8A

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

Color values

HEX#403F8A
RGBrgb(64, 63, 138)
HSLhsl(241, 37%, 39%)
HSVhsv(241, 54%, 54%)
CMYKcmyk(53.6%, 54.3%, 0%, 45.9%)
CIE-LABlab(30.59, 22.58, -41.88)
CIE-LCHlch(30.59, 47.58, 298.33°)
OKLaboklab(41.06% 0.0215 -0.1196)
OKLCHoklch(41.06% 0.122 280.2)
XYZxyz(8.4779, 6.4795, 24.8438)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F8A #898A3F
analogous
#3F648A #403F8A #663F8A
triadic
#403F8A #8A403F #3F8A40
tetradic
#403F8A #8A3F64 #898A3F #3F8A66
square
#403F8A #8A3F64 #898A3F #3F8A66
split-complementary
#403F8A #8A663F #648A3F
monochromatic
#191936 #2D2C60 #403F8A #5655B1 #807FC5

Accessibility & contrast

On white

9.15
#403F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403F8A
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F8A#FFFFFF#000000##FFFFFF
##403F8A1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164B8D
Deuteranopia (green-blind)
#0C4588
Tritanopia (blue-blind)
#21505E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #403f8a;
/* rgb */ color: rgb(64, 63, 138);
/* oklch */ color: oklch(41.1% 0.122 280.2);
Tailwind
colors: {
  custom: {
    50: '#7b74ad',
    500: '#403f8a',
    950: '#000000',
  },
}
SCSS
$custom: #403f8a;
$custom-light: #7b74ad;
$custom-dark: #000000;
JSON
{
  "hex": "#403f8a",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 138
  },
  "hsl": {
    "h": 240.8,
    "s": 37.313,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41064,
    "c": 0.12154,
    "h": 280.2
  },
  "luminance": 0.0648
}

Semantic roles & 50–950 ramp

primary
#403F8A
secondary
#AEAF76
accent
#CD5BCC
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #403F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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