#403D8A#403D8A

#403D8A is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.7% C 0.124 H 281.1°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#403D8A
RGBrgb(64, 61, 138)
HSLhsl(242, 39%, 39%)
HSVhsv(242, 56%, 54%)
CMYKcmyk(53.6%, 55.8%, 0%, 45.9%)
CIE-LABlab(30.06, 23.89, -42.73)
CIE-LCHlch(30.06, 48.96, 299.21°)
OKLaboklab(40.67% 0.0239 -0.1221)
OKLCHoklch(40.67% 0.124 281.1)
XYZxyz(8.3691, 6.2620, 24.8075)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D8A #878A3D
analogous
#3D618A #403D8A #673D8A
triadic
#403D8A #8A403D #3D8A40
tetradic
#403D8A #8A3D61 #878A3D #3D8A67
square
#403D8A #8A3D61 #878A3D #3D8A67
split-complementary
#403D8A #8A673D #618A3D
monochromatic
#191735 #2C2A60 #403D8A #5652B2 #7F7CC5

Accessibility & contrast

On white

9.32
#403D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#403D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D8A
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D8A#FFFFFF#000000##FFFFFF
##403D8A1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4A8D
Deuteranopia (green-blind)
#034488
Tritanopia (blue-blind)
#214E5D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #403d8a;
/* rgb */ color: rgb(64, 61, 138);
/* oklch */ color: oklch(40.7% 0.124 281.1);
Tailwind
colors: {
  custom: {
    50: '#7b72ad',
    500: '#403d8a',
    950: '#000000',
  },
}
SCSS
$custom: #403d8a;
$custom-light: #7b72ad;
$custom-dark: #000000;
JSON
{
  "hex": "#403d8a",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 138
  },
  "hsl": {
    "h": 242.338,
    "s": 38.693,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4067,
    "c": 0.12445,
    "h": 281.1
  },
  "luminance": 0.06262
}

Semantic roles & 50–950 ramp

primary
#403D8A
secondary
#ADAF74
accent
#CF59CA
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #403D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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