#403A7E#403A7E

#403A7E is a dark, moderate blue. Relative luminance 0.056; OKLCH L 39.2% C 0.111 H 284.0°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#403A7E
RGBrgb(64, 58, 126)
HSLhsl(245, 37%, 36%)
HSVhsv(245, 54%, 49%)
CMYKcmyk(49.2%, 54%, 0%, 50.6%)
CIE-LABlab(28.44, 21.88, -37.88)
CIE-LCHlch(28.44, 43.75, 300.01°)
OKLaboklab(39.19% 0.0269 -0.1079)
OKLCHoklch(39.19% 0.111 284)
XYZxyz(7.3922, 5.6221, 20.4303)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A7E #787E3A
analogous
#3A567E #403A7E #623A7E
triadic
#403A7E #7E403A #3A7E40
tetradic
#403A7E #7E3A56 #787E3A #3A7E62
square
#403A7E #7E3A56 #787E3A #3A7E62
split-complementary
#403A7E #7E623A #567E3A
monochromatic
#15132A #2B2754 #403A7E #554DA8 #7A74BF

Accessibility & contrast

On white

9.89
#403A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#403A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A7E
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A7E#FFFFFF#000000##FFFFFF
##403A7E1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194580
Deuteranopia (green-blind)
#15417D
Tritanopia (blue-blind)
#2B4956
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #403a7e;
/* rgb */ color: rgb(64, 58, 126);
/* oklch */ color: oklch(39.2% 0.111 284.0);
Tailwind
colors: {
  custom: {
    50: '#7970a4',
    500: '#403a7e',
    950: '#000000',
  },
}
SCSS
$custom: #403a7e;
$custom-light: #7970a4;
$custom-dark: #000000;
JSON
{
  "hex": "#403a7e",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 126
  },
  "hsl": {
    "h": 245.294,
    "s": 36.957,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3919,
    "c": 0.11119,
    "h": 284
  },
  "luminance": 0.05622
}

Semantic roles & 50–950 ramp

primary
#403A7E
secondary
#A3A86C
accent
#CD5BC3
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#09070F
muted
#7B7A7F

Preview Lab

Preview with #403A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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