#403155#403155

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

Color values

HEX#403155
RGBrgb(64, 49, 85)
HSLhsl(265, 27%, 26%)
HSVhsv(265, 42%, 33%)
CMYKcmyk(24.7%, 42.4%, 0%, 66.7%)
CIE-LABlab(23.48, 15.31, -19.37)
CIE-LCHlch(23.48, 24.68, 308.32°)
OKLaboklab(34.65% 0.0341 -0.0538)
OKLCHoklch(34.65% 0.064 302.4)
XYZxyz(4.8520, 3.9425, 9.0979)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403155 #465531
analogous
#313455 #403155 #523155
triadic
#403155 #554031 #315540
tetradic
#403155 #553134 #465531 #315552
square
#403155 #553134 #465531 #315552
split-complementary
#403155 #555231 #345531
monochromatic
#0F0B13 #231B2E #403155 #5D477C #7B5EA2

Accessibility & contrast

On white

11.74
#403155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403155
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403155#FFFFFF#000000##FFFFFF
##4031551.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#283856
Deuteranopia (green-blind)
#2B3854
Tritanopia (blue-blind)
#3C373F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #403155;
/* rgb */ color: rgb(64, 49, 85);
/* oklch */ color: oklch(34.6% 0.064 302.4);
Tailwind
colors: {
  custom: {
    50: '#756985',
    500: '#403155',
    950: '#000000',
  },
}
SCSS
$custom: #403155;
$custom-light: #756985;
$custom-dark: #000000;
JSON
{
  "hex": "#403155",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 85
  },
  "hsl": {
    "h": 265,
    "s": 26.866,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34646,
    "c": 0.06374,
    "h": 302.4
  },
  "luminance": 0.03942
}

Semantic roles & 50–950 ramp

primary
#403155
secondary
#74865C
accent
#C3659C
background
#F7F6F8
surface
#EDEBEF
border
#C8C6CA
text
#08060B
muted
#7B7A7C

Preview Lab

Preview with #403155

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

Preview Lab → · Contrast checker → · Palette generator →

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