#3A3040#3A3040

#3A3040 is a dark, muted violet. Relative luminance 0.034; OKLCH L 32.7% C 0.031 H 312.7°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#3A3040
RGBrgb(58, 48, 64)
HSLhsl(278, 14%, 22%)
HSVhsv(278, 25%, 25%)
CMYKcmyk(9.4%, 25%, 0%, 74.9%)
CIE-LABlab(21.52, 8.15, -8.37)
CIE-LCHlch(21.52, 11.68, 314.25°)
OKLaboklab(32.66% 0.0209 -0.0227)
OKLCHoklch(32.66% 0.031 312.7)
XYZxyz(3.7271, 3.3836, 5.3063)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3040 #364030
analogous
#323040 #3A3040 #40303E
triadic
#3A3040 #403A30 #30403A
tetradic
#3A3040 #403230 #364030 #303E40
square
#3A3040 #403230 #364030 #303E40
split-complementary
#3A3040 #3E4030 #304032
monochromatic
#100D11 #1A161D #3A3040 #5A4A63 #796486

Accessibility & contrast

On white

12.52
#3A3040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3A3040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3040
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3040#FFFFFF#000000##FFFFFF
##3A30401.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E3341
Deuteranopia (green-blind)
#30343F
Tritanopia (blue-blind)
#3A3235
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a3040;
/* rgb */ color: rgb(58, 48, 64);
/* oklch */ color: oklch(32.7% 0.031 312.7);
Tailwind
colors: {
  custom: {
    50: '#706874',
    500: '#3a3040',
    950: '#000000',
  },
}
SCSS
$custom: #3a3040;
$custom-light: #706874;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3040",
  "rgb": {
    "r": 58,
    "g": 48,
    "b": 64
  },
  "hsl": {
    "h": 277.5,
    "s": 14.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32659,
    "c": 0.03084,
    "h": 312.7
  },
  "luminance": 0.03384
}

Semantic roles & 50–950 ramp

primary
#3A3040
secondary
#63705C
accent
#B7718B
background
#F6F6F7
surface
#ECEBED
border
#C7C6C8
text
#070608
muted
#7A7A7B

Preview Lab

Preview with #3A3040

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

Preview Lab → · Contrast checker → · Palette generator →

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