#403248#403248

#403248 is a dark, muted violet. Relative luminance 0.038; OKLCH L 34.2% C 0.042 H 313.0°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#403248
RGBrgb(64, 50, 72)
HSLhsl(278, 18%, 24%)
HSVhsv(278, 31%, 28%)
CMYKcmyk(11.1%, 30.6%, 0%, 71.8%)
CIE-LABlab(23.13, 11.19, -11.24)
CIE-LCHlch(23.13, 15.86, 314.87°)
OKLaboklab(34.17% 0.0286 -0.0307)
OKLCHoklch(34.17% 0.042 313)
XYZxyz(4.4245, 3.8391, 6.6376)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403248 #3A4832
analogous
#353248 #403248 #483245
triadic
#403248 #484032 #324840
tetradic
#403248 #483532 #3A4832 #324548
square
#403248 #483532 #3A4832 #324548
split-complementary
#403248 #454832 #324835
monochromatic
#100D12 #201924 #403248 #604B6C #806490

Accessibility & contrast

On white

11.88
#403248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#403248 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403248
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403248#FFFFFF#000000##FFFFFF
##4032481.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F3649
Deuteranopia (green-blind)
#323847
Tritanopia (blue-blind)
#3F353A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #403248;
/* rgb */ color: rgb(64, 50, 72);
/* oklch */ color: oklch(34.2% 0.042 313.0);
Tailwind
colors: {
  custom: {
    50: '#756a7b',
    500: '#403248',
    950: '#000000',
  },
}
SCSS
$custom: #403248;
$custom-light: #756a7b;
$custom-dark: #000000;
JSON
{
  "hex": "#403248",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 72
  },
  "hsl": {
    "h": 278.182,
    "s": 18.033,
    "l": 23.922
  },
  "oklch": {
    "l": 0.34172,
    "c": 0.0419,
    "h": 313
  },
  "luminance": 0.03839
}

Semantic roles & 50–950 ramp

primary
#403248
secondary
#67785D
accent
#BB6D89
background
#F7F6F7
surface
#EDEBED
border
#C8C6C8
text
#080609
muted
#7B7A7B

Preview Lab

Preview with #403248

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

Preview Lab → · Contrast checker → · Palette generator →

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