#3A3240#3A3240

#3A3240 is a dark, muted violet. Relative luminance 0.036; OKLCH L 33.1% C 0.027 H 310.6°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#3A3240
RGBrgb(58, 50, 64)
HSLhsl(274, 12%, 22%)
HSVhsv(274, 22%, 25%)
CMYKcmyk(9.4%, 21.9%, 0%, 74.9%)
CIE-LABlab(22.13, 6.79, -7.44)
CIE-LCHlch(22.13, 10.07, 312.37°)
OKLaboklab(33.13% 0.0173 -0.0201)
OKLCHoklch(33.13% 0.027 310.6)
XYZxyz(3.8108, 3.5509, 5.3341)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3240 #384032
analogous
#333240 #3A3240 #40323F
triadic
#3A3240 #403A32 #32403A
tetradic
#3A3240 #403332 #384032 #323F40
square
#3A3240 #403332 #384032 #323F40
split-complementary
#3A3240 #3F4032 #324033
monochromatic
#100D11 #1B171E #3A3240 #594D62 #786885

Accessibility & contrast

On white

12.28
#3A3240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3A3240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3240
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3240#FFFFFF#000000##FFFFFF
##3A32401.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#303541
Deuteranopia (green-blind)
#323540
Tritanopia (blue-blind)
#393437
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a3240;
/* rgb */ color: rgb(58, 50, 64);
/* oklch */ color: oklch(33.1% 0.027 310.6);
Tailwind
colors: {
  custom: {
    50: '#706974',
    500: '#3a3240',
    950: '#000000',
  },
}
SCSS
$custom: #3a3240;
$custom-light: #706974;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3240",
  "rgb": {
    "r": 58,
    "g": 50,
    "b": 64
  },
  "hsl": {
    "h": 274.286,
    "s": 12.281,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33129,
    "c": 0.02651,
    "h": 310.6
  },
  "luminance": 0.03551
}

Semantic roles & 50–950 ramp

primary
#3A3240
secondary
#66705E
accent
#B5738F
background
#F6F6F7
surface
#ECEBED
border
#C7C6C8
text
#070608
muted
#7A7A7B

Preview Lab

Preview with #3A3240

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

Preview Lab → · Contrast checker → · Palette generator →

#3A3240 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva