#403D7E#403D7E

#403D7E is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.8% C 0.107 H 282.5°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#403D7E
RGBrgb(64, 61, 126)
HSLhsl(243, 35%, 37%)
HSVhsv(243, 52%, 49%)
CMYKcmyk(49.2%, 51.6%, 0%, 50.6%)
CIE-LABlab(29.24, 19.90, -36.59)
CIE-LCHlch(29.24, 41.65, 298.54°)
OKLaboklab(39.79% 0.0231 -0.1041)
OKLCHoklch(39.79% 0.107 282.5)
XYZxyz(7.5479, 5.9335, 20.4822)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D7E #7B7E3D
analogous
#3D5B7E #403D7E #613D7E
triadic
#403D7E #7E403D #3D7E40
tetradic
#403D7E #7E3D5B #7B7E3D #3D7E61
square
#403D7E #7E3D5B #7B7E3D #3D7E61
split-complementary
#403D7E #7E613D #5B7E3D
monochromatic
#16152C #2B2955 #403D7E #5551A7 #7B78BE

Accessibility & contrast

On white

9.60
#403D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#403D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D7E
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D7E#FFFFFF#000000##FFFFFF
##403D7E1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204780
Deuteranopia (green-blind)
#1C437D
Tritanopia (blue-blind)
#2A4B57
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #403d7e;
/* rgb */ color: rgb(64, 61, 126);
/* oklch */ color: oklch(39.8% 0.107 282.5);
Tailwind
colors: {
  custom: {
    50: '#7972a4',
    500: '#403d7e',
    950: '#000000',
  },
}
SCSS
$custom: #403d7e;
$custom-light: #7972a4;
$custom-dark: #000000;
JSON
{
  "hex": "#403d7e",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 126
  },
  "hsl": {
    "h": 242.769,
    "s": 34.759,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39794,
    "c": 0.10659,
    "h": 282.5
  },
  "luminance": 0.05934
}

Semantic roles & 50–950 ramp

primary
#403D7E
secondary
#A5A86F
accent
#CB5DC6
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#09080F
muted
#7B7B7F

Preview Lab

Preview with #403D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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