#403C6B#403C6B

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

Color values

HEX#403C6B
RGBrgb(64, 60, 107)
HSLhsl(245, 28%, 33%)
HSVhsv(245, 44%, 42%)
CMYKcmyk(40.2%, 43.9%, 0%, 58%)
CIE-LABlab(27.80, 14.45, -26.87)
CIE-LCHlch(27.80, 30.51, 298.26°)
OKLaboklab(38.32% 0.0216 -0.0756)
OKLCHoklch(38.32% 0.079 285.9)
XYZxyz(6.3833, 5.3830, 14.6098)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C6B #676B3C
analogous
#3C506B #403C6B #573C6B
triadic
#403C6B #6B403C #3C6B40
tetradic
#403C6B #6B3C50 #676B3C #3C6B57
square
#403C6B #6B3C50 #676B3C #3C6B57
split-complementary
#403C6B #6B573C #506B3C
monochromatic
#11101D #292644 #403C6B #575292 #7772B0

Accessibility & contrast

On white

10.11
#403C6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403C6B
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C6B#FFFFFF#000000##FFFFFF
##403C6B1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C436D
Deuteranopia (green-blind)
#2B406A
Tritanopia (blue-blind)
#34454E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #403c6b;
/* rgb */ color: rgb(64, 60, 107);
/* oklch */ color: oklch(38.3% 0.079 285.9);
Tailwind
colors: {
  custom: {
    50: '#777195',
    500: '#403c6b',
    950: '#000000',
  },
}
SCSS
$custom: #403c6b;
$custom-light: #777195;
$custom-dark: #000000;
JSON
{
  "hex": "#403c6b",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 107
  },
  "hsl": {
    "h": 245.106,
    "s": 28.144,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38323,
    "c": 0.07866,
    "h": 285.9
  },
  "luminance": 0.05383
}

Semantic roles & 50–950 ramp

primary
#403C6B
secondary
#969A69
accent
#C463BC
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#09070D
muted
#7B7A7E

Preview Lab

Preview with #403C6B

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

Preview Lab → · Contrast checker → · Palette generator →

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