#403154#403154

#403154 is a dark, moderate violet. Relative luminance 0.039; OKLCH L 34.6% C 0.062 H 303.0°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#403154
RGBrgb(64, 49, 84)
HSLhsl(266, 26%, 26%)
HSVhsv(266, 42%, 33%)
CMYKcmyk(23.8%, 41.7%, 0%, 67.1%)
CIE-LABlab(23.43, 15.03, -18.79)
CIE-LCHlch(23.43, 24.06, 308.66°)
OKLaboklab(34.59% 0.0339 -0.0522)
OKLCHoklch(34.59% 0.062 303)
XYZxyz(4.8126, 3.9267, 8.8902)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403154 #455431
analogous
#313354 #403154 #513154
triadic
#403154 #544031 #315440
tetradic
#403154 #543133 #455431 #315451
square
#403154 #543133 #455431 #315451
split-complementary
#403154 #545131 #335431
monochromatic
#0F0B13 #231A2D #403154 #5D487B #7B5EA1

Accessibility & contrast

On white

11.76
#403154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#403154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403154
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403154#FFFFFF#000000##FFFFFF
##4031541.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#293755
Deuteranopia (green-blind)
#2C3853
Tritanopia (blue-blind)
#3D373E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #403154;
/* rgb */ color: rgb(64, 49, 84);
/* oklch */ color: oklch(34.6% 0.062 303.0);
Tailwind
colors: {
  custom: {
    50: '#756984',
    500: '#403154',
    950: '#000000',
  },
}
SCSS
$custom: #403154;
$custom-light: #756984;
$custom-dark: #000000;
JSON
{
  "hex": "#403154",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 84
  },
  "hsl": {
    "h": 265.714,
    "s": 26.316,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34589,
    "c": 0.06221,
    "h": 303
  },
  "luminance": 0.03927
}

Semantic roles & 50–950 ramp

primary
#403154
secondary
#73855C
accent
#C3659B
background
#F7F6F8
surface
#EDEBEF
border
#C8C6CA
text
#08060B
muted
#7B7A7C

Preview Lab

Preview with #403154

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

Preview Lab → · Contrast checker → · Palette generator →

#403154 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva