#403D7C#403D7C

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

Color values

HEX#403D7C
RGBrgb(64, 61, 124)
HSLhsl(243, 34%, 36%)
HSVhsv(243, 51%, 49%)
CMYKcmyk(48.4%, 50.8%, 0%, 51.4%)
CIE-LABlab(29.11, 19.24, -35.54)
CIE-LCHlch(29.11, 40.42, 298.42°)
OKLaboklab(39.65% 0.0229 -0.101)
OKLCHoklch(39.65% 0.104 282.7)
XYZxyz(7.4201, 5.8824, 19.8093)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D7C #797C3D
analogous
#3D5A7C #403D7C #603D7C
triadic
#403D7C #7C403D #3D7C40
tetradic
#403D7C #7C3D5A #797C3D #3D7C60
square
#403D7C #7C3D5A #797C3D #3D7C60
split-complementary
#403D7C #7C603D #5A7C3D
monochromatic
#16152A #2B2953 #403D7C #5551A5 #7A77BC

Accessibility & contrast

On white

9.65
#403D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403D7C
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D7C#FFFFFF#000000##FFFFFF
##403D7C1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22477E
Deuteranopia (green-blind)
#1E427B
Tritanopia (blue-blind)
#2C4A56
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #403d7c;
/* rgb */ color: rgb(64, 61, 124);
/* oklch */ color: oklch(39.7% 0.104 282.7);
Tailwind
colors: {
  custom: {
    50: '#7972a2',
    500: '#403d7c',
    950: '#000000',
  },
}
SCSS
$custom: #403d7c;
$custom-light: #7972a2;
$custom-dark: #000000;
JSON
{
  "hex": "#403d7c",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 124
  },
  "hsl": {
    "h": 242.857,
    "s": 34.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39654,
    "c": 0.10355,
    "h": 282.7
  },
  "luminance": 0.05883
}

Semantic roles & 50–950 ramp

primary
#403D7C
secondary
#A4A66F
accent
#CA5EC5
background
#F7F6FA
surface
#EEECF3
border
#C9C7CD
text
#09080F
muted
#7B7B7F

Preview Lab

Preview with #403D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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