#403151#403151

#403151 is a dark, muted violet. Relative luminance 0.039; OKLCH L 34.4% C 0.058 H 305.1°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#403151
RGBrgb(64, 49, 81)
HSLhsl(268, 25%, 25%)
HSVhsv(268, 40%, 32%)
CMYKcmyk(21%, 39.5%, 0%, 68.2%)
CIE-LABlab(23.27, 14.21, -17.04)
CIE-LCHlch(23.27, 22.19, 309.83°)
OKLaboklab(34.42% 0.0331 -0.0471)
OKLCHoklch(34.42% 0.058 305.1)
XYZxyz(4.6976, 3.8807, 8.2846)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403151 #425131
analogous
#313251 #403151 #503151
triadic
#403151 #514031 #315140
tetradic
#403151 #513132 #425131 #315150
square
#403151 #513132 #425131 #315150
split-complementary
#403151 #515031 #325131
monochromatic
#0F0C13 #221A2B #403151 #5E4877 #7C5F9D

Accessibility & contrast

On white

11.82
#403151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#403151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403151
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403151#FFFFFF#000000##FFFFFF
##4031511.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A3752
Deuteranopia (green-blind)
#2D3850
Tritanopia (blue-blind)
#3D363D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #403151;
/* rgb */ color: rgb(64, 49, 81);
/* oklch */ color: oklch(34.4% 0.058 305.1);
Tailwind
colors: {
  custom: {
    50: '#756982',
    500: '#403151',
    950: '#000000',
  },
}
SCSS
$custom: #403151;
$custom-light: #756982;
$custom-dark: #000000;
JSON
{
  "hex": "#403151",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 81
  },
  "hsl": {
    "h": 268.125,
    "s": 24.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34421,
    "c": 0.0576,
    "h": 305.1
  },
  "luminance": 0.03881
}

Semantic roles & 50–950 ramp

primary
#403151
secondary
#70825C
accent
#C16797
background
#F7F6F7
surface
#EDEBEE
border
#C8C6C9
text
#08060A
muted
#7B7A7C

Preview Lab

Preview with #403151

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

Preview Lab → · Contrast checker → · Palette generator →

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