#403148#403148

#403148 is a dark, muted violet. Relative luminance 0.038; OKLCH L 34.0% C 0.044 H 313.6°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#403148
RGBrgb(64, 49, 72)
HSLhsl(279, 19%, 24%)
HSVhsv(279, 32%, 28%)
CMYKcmyk(11.1%, 31.9%, 0%, 71.8%)
CIE-LABlab(22.84, 11.86, -11.69)
CIE-LCHlch(22.84, 16.65, 315.43°)
OKLaboklab(33.95% 0.0304 -0.0319)
OKLCHoklch(33.95% 0.044 313.6)
XYZxyz(4.3822, 3.7546, 6.6235)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403148 #394831
analogous
#343148 #403148 #483144
triadic
#403148 #484031 #314840
tetradic
#403148 #483431 #394831 #314448
square
#403148 #483431 #394831 #314448
split-complementary
#403148 #444831 #314834
monochromatic
#100C12 #201824 #403148 #604A6C #816391

Accessibility & contrast

On white

11.99
#403148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#403148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403148
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403148#FFFFFF#000000##FFFFFF
##4031481.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E3649
Deuteranopia (green-blind)
#313747
Tritanopia (blue-blind)
#3F3439
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #403148;
/* rgb */ color: rgb(64, 49, 72);
/* oklch */ color: oklch(34.0% 0.044 313.6);
Tailwind
colors: {
  custom: {
    50: '#75697b',
    500: '#403148',
    950: '#000000',
  },
}
SCSS
$custom: #403148;
$custom-light: #75697b;
$custom-dark: #000000;
JSON
{
  "hex": "#403148",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 72
  },
  "hsl": {
    "h": 279.13,
    "s": 19.008,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33951,
    "c": 0.04404,
    "h": 313.6
  },
  "luminance": 0.03754
}

Semantic roles & 50–950 ramp

primary
#403148
secondary
#66795C
accent
#BC6C88
background
#F7F6F7
surface
#EDEBED
border
#C8C6C8
text
#080609
muted
#7B7A7B

Preview Lab

Preview with #403148

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

Preview Lab → · Contrast checker → · Palette generator →

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