#403F8D#403F8D

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

Color values

HEX#403F8D
RGBrgb(64, 63, 141)
HSLhsl(241, 38%, 40%)
HSVhsv(241, 55%, 55%)
CMYKcmyk(54.6%, 55.3%, 0%, 44.7%)
CIE-LABlab(30.80, 23.59, -43.39)
CIE-LCHlch(30.80, 49.39, 298.53°)
OKLaboklab(41.29% 0.0217 -0.1241)
OKLCHoklch(41.29% 0.126 279.9)
XYZxyz(8.6981, 6.5676, 26.0035)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F8D #8C8D3F
analogous
#3F658D #403F8D #673F8D
triadic
#403F8D #8D403F #3F8D40
tetradic
#403F8D #8D3F65 #8C8D3F #3F8D67
square
#403F8D #8D3F65 #8C8D3F #3F8D67
split-complementary
#403F8D #8D673F #658D3F
monochromatic
#1A1938 #2D2C63 #403F8D #5756B3 #8180C6

Accessibility & contrast

On white

9.08
#403F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403F8D
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F8D#FFFFFF#000000##FFFFFF
##403F8D1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114C90
Deuteranopia (green-blind)
#03468B
Tritanopia (blue-blind)
#1E515F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #403f8d;
/* rgb */ color: rgb(64, 63, 141);
/* oklch */ color: oklch(41.3% 0.126 279.9);
Tailwind
colors: {
  custom: {
    50: '#7b74af',
    500: '#403f8d',
    950: '#000000',
  },
}
SCSS
$custom: #403f8d;
$custom-light: #7b74af;
$custom-dark: #000000;
JSON
{
  "hex": "#403f8d",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 141
  },
  "hsl": {
    "h": 240.769,
    "s": 38.235,
    "l": 40
  },
  "oklch": {
    "l": 0.41289,
    "c": 0.12594,
    "h": 279.9
  },
  "luminance": 0.06568
}

Semantic roles & 50–950 ramp

primary
#403F8D
secondary
#B0B177
accent
#CE5ACD
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #403F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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