#403255#403255

#403255 is a dark, moderate violet. Relative luminance 0.040; OKLCH L 34.9% C 0.062 H 301.7°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#403255
RGBrgb(64, 50, 85)
HSLhsl(264, 26%, 26%)
HSVhsv(264, 41%, 33%)
CMYKcmyk(24.7%, 41.2%, 0%, 66.7%)
CIE-LABlab(23.76, 14.63, -18.93)
CIE-LCHlch(23.76, 23.93, 307.71°)
OKLaboklab(34.86% 0.0325 -0.0526)
OKLCHoklch(34.86% 0.062 301.7)
XYZxyz(4.8943, 4.0271, 9.1120)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403255 #475532
analogous
#323655 #403255 #523255
triadic
#403255 #554032 #325540
tetradic
#403255 #553236 #475532 #325552
square
#403255 #553236 #475532 #325552
split-complementary
#403255 #555232 #365532
monochromatic
#0F0B13 #231B2E #403255 #5D497C #7A60A1

Accessibility & contrast

On white

11.63
#403255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#403255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403255
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403255#FFFFFF#000000##FFFFFF
##4032551.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A3856
Deuteranopia (green-blind)
#2C3854
Tritanopia (blue-blind)
#3C383F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #403255;
/* rgb */ color: rgb(64, 50, 85);
/* oklch */ color: oklch(34.9% 0.062 301.7);
Tailwind
colors: {
  custom: {
    50: '#756a85',
    500: '#403255',
    950: '#000000',
  },
}
SCSS
$custom: #403255;
$custom-light: #756a85;
$custom-dark: #000000;
JSON
{
  "hex": "#403255",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 85
  },
  "hsl": {
    "h": 264,
    "s": 25.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34859,
    "c": 0.06179,
    "h": 301.7
  },
  "luminance": 0.04027
}

Semantic roles & 50–950 ramp

primary
#403255
secondary
#76865D
accent
#C2659D
background
#F7F6F8
surface
#EDEBEF
border
#C8C6CA
text
#08060B
muted
#7B7A7C

Preview Lab

Preview with #403255

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

Preview Lab → · Contrast checker → · Palette generator →

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