#403D7A#403D7A

#403D7A is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.5% C 0.101 H 283.0°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#403D7A
RGBrgb(64, 61, 122)
HSLhsl(243, 33%, 36%)
HSVhsv(243, 50%, 48%)
CMYKcmyk(47.5%, 50%, 0%, 52.2%)
CIE-LABlab(28.99, 18.58, -34.49)
CIE-LCHlch(28.99, 39.18, 298.31°)
OKLaboklab(39.52% 0.0226 -0.0979)
OKLCHoklch(39.52% 0.101 283)
XYZxyz(7.2949, 5.8323, 19.1499)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D7A #777A3D
analogous
#3D587A #403D7A #5E3D7A
triadic
#403D7A #7A403D #3D7A40
tetradic
#403D7A #7A3D58 #777A3D #3D7A5E
square
#403D7A #7A3D58 #777A3D #3D7A5E
split-complementary
#403D7A #7A5E3D #587A3D
monochromatic
#151428 #2B2951 #403D7A #5551A3 #7A77BB

Accessibility & contrast

On white

9.69
#403D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#403D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D7A
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D7A#FFFFFF#000000##FFFFFF
##403D7A1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23467C
Deuteranopia (green-blind)
#204279
Tritanopia (blue-blind)
#2D4A55
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #403d7a;
/* rgb */ color: rgb(64, 61, 122);
/* oklch */ color: oklch(39.5% 0.101 283.0);
Tailwind
colors: {
  custom: {
    50: '#7972a1',
    500: '#403d7a',
    950: '#000000',
  },
}
SCSS
$custom: #403d7a;
$custom-light: #7972a1;
$custom-dark: #000000;
JSON
{
  "hex": "#403d7a",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 122
  },
  "hsl": {
    "h": 242.951,
    "s": 33.333,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39515,
    "c": 0.1005,
    "h": 283
  },
  "luminance": 0.05833
}

Semantic roles & 50–950 ramp

primary
#403D7A
secondary
#A2A56E
accent
#C95EC4
background
#F7F6F9
surface
#EEECF2
border
#C9C7CC
text
#09080F
muted
#7B7B7E

Preview Lab

Preview with #403D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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