#403D7D#403D7D

#403D7D is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.7% C 0.105 H 282.6°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#403D7D
RGBrgb(64, 61, 125)
HSLhsl(243, 34%, 36%)
HSVhsv(243, 51%, 49%)
CMYKcmyk(48.8%, 51.2%, 0%, 51%)
CIE-LABlab(29.18, 19.57, -36.07)
CIE-LCHlch(29.18, 41.03, 298.48°)
OKLaboklab(39.72% 0.023 -0.1025)
OKLCHoklch(39.72% 0.105 282.6)
XYZxyz(7.4837, 5.9078, 20.1441)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D7D #7A7D3D
analogous
#3D5A7D #403D7D #603D7D
triadic
#403D7D #7D403D #3D7D40
tetradic
#403D7D #7D3D5A #7A7D3D #3D7D60
square
#403D7D #7D3D5A #7A7D3D #3D7D60
split-complementary
#403D7D #7D603D #5A7D3D
monochromatic
#16152B #2B2954 #403D7D #5551A6 #7B78BD

Accessibility & contrast

On white

9.63
#403D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#403D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D7D
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D7D#FFFFFF#000000##FFFFFF
##403D7D1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21477F
Deuteranopia (green-blind)
#1D437C
Tritanopia (blue-blind)
#2B4B57
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #403d7d;
/* rgb */ color: rgb(64, 61, 125);
/* oklch */ color: oklch(39.7% 0.105 282.6);
Tailwind
colors: {
  custom: {
    50: '#7972a3',
    500: '#403d7d',
    950: '#000000',
  },
}
SCSS
$custom: #403d7d;
$custom-light: #7972a3;
$custom-dark: #000000;
JSON
{
  "hex": "#403d7d",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 125
  },
  "hsl": {
    "h": 242.813,
    "s": 34.409,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39723,
    "c": 0.10508,
    "h": 282.6
  },
  "luminance": 0.05908
}

Semantic roles & 50–950 ramp

primary
#403D7D
secondary
#A4A76F
accent
#CA5DC5
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#09080F
muted
#7B7B7F

Preview Lab

Preview with #403D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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