#403C6F#403C6F

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

Color values

HEX#403C6F
RGBrgb(64, 60, 111)
HSLhsl(245, 30%, 34%)
HSVhsv(245, 46%, 44%)
CMYKcmyk(42.3%, 45.9%, 0%, 56.5%)
CIE-LABlab(28.03, 15.71, -29.06)
CIE-LCHlch(28.03, 33.03, 298.39°)
OKLaboklab(38.57% 0.0224 -0.082)
OKLCHoklch(38.57% 0.085 285.3)
XYZxyz(6.5986, 5.4692, 15.7438)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C6F #6B6F3C
analogous
#3C516F #403C6F #593C6F
triadic
#403C6F #6F403C #3C6F40
tetradic
#403C6F #6F3C51 #6B6F3C #3C6F59
square
#403C6F #6F3C51 #6B6F3C #3C6F59
split-complementary
#403C6F #6F593C #516F3C
monochromatic
#121120 #292747 #403C6F #575197 #7772B3

Accessibility & contrast

On white

10.03
#403C6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#403C6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403C6F
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C6F#FFFFFF#000000##FFFFFF
##403C6F1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4471
Deuteranopia (green-blind)
#28416E
Tritanopia (blue-blind)
#324650
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #403c6f;
/* rgb */ color: rgb(64, 60, 111);
/* oklch */ color: oklch(38.6% 0.085 285.3);
Tailwind
colors: {
  custom: {
    50: '#777198',
    500: '#403c6f',
    950: '#000000',
  },
}
SCSS
$custom: #403c6f;
$custom-light: #777198;
$custom-dark: #000000;
JSON
{
  "hex": "#403c6f",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 111
  },
  "hsl": {
    "h": 244.706,
    "s": 29.825,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38575,
    "c": 0.08499,
    "h": 285.3
  },
  "luminance": 0.05469
}

Semantic roles & 50–950 ramp

primary
#403C6F
secondary
#999D6A
accent
#C662BE
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#09070E
muted
#7B7A7E

Preview Lab

Preview with #403C6F

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

Preview Lab → · Contrast checker → · Palette generator →

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