#403A76#403A76

#403A76 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.6% C 0.099 H 285.3°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#403A76
RGBrgb(64, 58, 118)
HSLhsl(246, 34%, 35%)
HSVhsv(246, 51%, 46%)
CMYKcmyk(45.8%, 50.8%, 0%, 53.7%)
CIE-LABlab(27.91, 19.28, -33.69)
CIE-LCHlch(27.91, 38.82, 299.78°)
OKLaboklab(38.62% 0.0262 -0.0956)
OKLCHoklch(38.62% 0.099 285.3)
XYZxyz(6.8965, 5.4238, 17.8196)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A76 #70763A
analogous
#3A5276 #403A76 #5E3A76
triadic
#403A76 #76403A #3A7640
tetradic
#403A76 #763A52 #70763A #3A765E
square
#403A76 #763A52 #70763A #3A765E
split-complementary
#403A76 #765E3A #52763A
monochromatic
#131224 #2A264D #403A76 #564E9F #7871B9

Accessibility & contrast

On white

10.07
#403A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#403A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A76
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A76#FFFFFF#000000##FFFFFF
##403A761.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214478
Deuteranopia (green-blind)
#1F4075
Tritanopia (blue-blind)
#2F4652
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #403a76;
/* rgb */ color: rgb(64, 58, 118);
/* oklch */ color: oklch(38.6% 0.099 285.3);
Tailwind
colors: {
  custom: {
    50: '#78709e',
    500: '#403a76',
    950: '#000000',
  },
}
SCSS
$custom: #403a76;
$custom-light: #78709e;
$custom-dark: #000000;
JSON
{
  "hex": "#403a76",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 118
  },
  "hsl": {
    "h": 246,
    "s": 34.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38623,
    "c": 0.0991,
    "h": 285.3
  },
  "luminance": 0.05424
}

Semantic roles & 50–950 ramp

primary
#403A76
secondary
#9DA369
accent
#CA5EBF
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#09070E
muted
#7B7A7E

Preview Lab

Preview with #403A76

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

Preview Lab → · Contrast checker → · Palette generator →

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