#403261#403261

#403261 is a dark, moderate violet. Relative luminance 0.042; OKLCH L 35.6% C 0.080 H 295.8°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#403261
RGBrgb(64, 50, 97)
HSLhsl(258, 32%, 29%)
HSVhsv(258, 48%, 38%)
CMYKcmyk(34%, 48.5%, 0%, 62%)
CIE-LABlab(24.43, 18.09, -25.75)
CIE-LCHlch(24.43, 31.47, 305.08°)
OKLaboklab(35.58% 0.0349 -0.0724)
OKLCHoklch(35.58% 0.08 295.8)
XYZxyz(5.4121, 4.2342, 11.8391)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403261 #536132
analogous
#323C61 #403261 #583261
triadic
#403261 #614032 #326140
tetradic
#403261 #61323C #536132 #326158
square
#403261 #61323C #536132 #326158
split-complementary
#403261 #615832 #3C6132
monochromatic
#0D0A14 #251D39 #403261 #5B4789 #7760AD

Accessibility & contrast

On white

11.37
#403261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#403261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403261
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403261#FFFFFF#000000##FFFFFF
##4032611.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#233A63
Deuteranopia (green-blind)
#263960
Tritanopia (blue-blind)
#393B44
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #403261;
/* rgb */ color: rgb(64, 50, 97);
/* oklch */ color: oklch(35.6% 0.080 295.8);
Tailwind
colors: {
  custom: {
    50: '#766a8e',
    500: '#403261',
    950: '#000000',
  },
}
SCSS
$custom: #403261;
$custom-light: #766a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#403261",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 97
  },
  "hsl": {
    "h": 257.872,
    "s": 31.973,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35584,
    "c": 0.08035,
    "h": 295.8
  },
  "luminance": 0.04234
}

Semantic roles & 50–950 ramp

primary
#403261
secondary
#82925D
accent
#C860A9
background
#F7F6F8
surface
#EDEBF0
border
#C8C6CB
text
#09060C
muted
#7B7A7D

Preview Lab

Preview with #403261

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

Preview Lab → · Contrast checker → · Palette generator →

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