#403C6A#403C6A

#403C6A is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.3% C 0.077 H 286.1°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#403C6A
RGBrgb(64, 60, 106)
HSLhsl(245, 28%, 33%)
HSVhsv(245, 43%, 42%)
CMYKcmyk(39.6%, 43.4%, 0%, 58.4%)
CIE-LABlab(27.74, 14.14, -26.32)
CIE-LCHlch(27.74, 29.88, 298.24°)
OKLaboklab(38.26% 0.0214 -0.074)
OKLCHoklch(38.26% 0.077 286.1)
XYZxyz(6.3310, 5.3621, 14.3343)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C6A #666A3C
analogous
#3C4F6A #403C6A #573C6A
triadic
#403C6A #6A403C #3C6A40
tetradic
#403C6A #6A3C4F #666A3C #3C6A57
square
#403C6A #6A3C4F #666A3C #3C6A57
split-complementary
#403C6A #6A573C #4F6A3C
monochromatic
#11101C #282643 #403C6A #585291 #7771AF

Accessibility & contrast

On white

10.13
#403C6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#403C6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403C6A
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C6A#FFFFFF#000000##FFFFFF
##403C6A1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D436C
Deuteranopia (green-blind)
#2C4069
Tritanopia (blue-blind)
#35454E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #403c6a;
/* rgb */ color: rgb(64, 60, 106);
/* oklch */ color: oklch(38.3% 0.077 286.1);
Tailwind
colors: {
  custom: {
    50: '#777195',
    500: '#403c6a',
    950: '#000000',
  },
}
SCSS
$custom: #403c6a;
$custom-light: #777195;
$custom-dark: #000000;
JSON
{
  "hex": "#403c6a",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 106
  },
  "hsl": {
    "h": 245.217,
    "s": 27.711,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38261,
    "c": 0.07706,
    "h": 286.1
  },
  "luminance": 0.05362
}

Semantic roles & 50–950 ramp

primary
#403C6A
secondary
#959968
accent
#C464BC
background
#F7F6F9
surface
#EDECF1
border
#C8C7CB
text
#09070D
muted
#7B7A7E

Preview Lab

Preview with #403C6A

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

Preview Lab → · Contrast checker → · Palette generator →

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