#403256#403256

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

Color values

HEX#403256
RGBrgb(64, 50, 86)
HSLhsl(263, 26%, 27%)
HSVhsv(263, 42%, 34%)
CMYKcmyk(25.6%, 41.9%, 0%, 66.3%)
CIE-LABlab(23.81, 14.91, -19.51)
CIE-LCHlch(23.81, 24.55, 307.40°)
OKLaboklab(34.92% 0.0327 -0.0542)
OKLCHoklch(34.92% 0.063 301.1)
XYZxyz(4.9343, 4.0431, 9.3227)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403256 #485632
analogous
#323656 #403256 #523256
triadic
#403256 #564032 #325640
tetradic
#403256 #563236 #485632 #325652
square
#403256 #563236 #485632 #325652
split-complementary
#403256 #565232 #365632
monochromatic
#0E0B13 #231C2F #403256 #5D497D #7A60A3

Accessibility & contrast

On white

11.61
#403256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403256
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403256#FFFFFF#000000##FFFFFF
##4032561.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#293857
Deuteranopia (green-blind)
#2C3855
Tritanopia (blue-blind)
#3C3840
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #403256;
/* rgb */ color: rgb(64, 50, 86);
/* oklch */ color: oklch(34.9% 0.063 301.1);
Tailwind
colors: {
  custom: {
    50: '#756a86',
    500: '#403256',
    950: '#000000',
  },
}
SCSS
$custom: #403256;
$custom-light: #756a86;
$custom-dark: #000000;
JSON
{
  "hex": "#403256",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 86
  },
  "hsl": {
    "h": 263.333,
    "s": 26.471,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34916,
    "c": 0.06334,
    "h": 301.1
  },
  "luminance": 0.04043
}

Semantic roles & 50–950 ramp

primary
#403256
secondary
#77875D
accent
#C3659E
background
#F7F6F8
surface
#EDEBEF
border
#C8C6CA
text
#08060B
muted
#7B7A7C

Preview Lab

Preview with #403256

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

Preview Lab → · Contrast checker → · Palette generator →

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