#403D7B#403D7B

#403D7B is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.6% C 0.102 H 282.9°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#403D7B
RGBrgb(64, 61, 123)
HSLhsl(243, 34%, 36%)
HSVhsv(243, 50%, 48%)
CMYKcmyk(48%, 50.4%, 0%, 51.8%)
CIE-LABlab(29.05, 18.91, -35.02)
CIE-LCHlch(29.05, 39.80, 298.37°)
OKLaboklab(39.58% 0.0227 -0.0995)
OKLCHoklch(39.58% 0.102 282.9)
XYZxyz(7.3572, 5.8572, 19.4779)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D7B #787B3D
analogous
#3D597B #403D7B #5F3D7B
triadic
#403D7B #7B403D #3D7B40
tetradic
#403D7B #7B3D59 #787B3D #3D7B5F
square
#403D7B #7B3D59 #787B3D #3D7B5F
split-complementary
#403D7B #7B5F3D #597B3D
monochromatic
#151429 #2B2952 #403D7B #5551A4 #7A77BC

Accessibility & contrast

On white

9.67
#403D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403D7B
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D7B#FFFFFF#000000##FFFFFF
##403D7B1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22477D
Deuteranopia (green-blind)
#1F427A
Tritanopia (blue-blind)
#2C4A56
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #403d7b;
/* rgb */ color: rgb(64, 61, 123);
/* oklch */ color: oklch(39.6% 0.102 282.9);
Tailwind
colors: {
  custom: {
    50: '#7972a1',
    500: '#403d7b',
    950: '#000000',
  },
}
SCSS
$custom: #403d7b;
$custom-light: #7972a1;
$custom-dark: #000000;
JSON
{
  "hex": "#403d7b",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 123
  },
  "hsl": {
    "h": 242.903,
    "s": 33.696,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39584,
    "c": 0.10202,
    "h": 282.9
  },
  "luminance": 0.05858
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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