#3A2B4E#3A2B4E

#3A2B4E is a dark, moderate violet. Relative luminance 0.032; OKLCH L 32.3% C 0.063 H 302.8°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#3A2B4E
RGBrgb(58, 43, 78)
HSLhsl(266, 29%, 24%)
HSVhsv(266, 45%, 31%)
CMYKcmyk(25.6%, 44.9%, 0%, 69.4%)
CIE-LABlab(20.74, 15.32, -19.04)
CIE-LCHlch(20.74, 24.43, 308.82°)
OKLaboklab(32.29% 0.0341 -0.053)
OKLCHoklch(32.29% 0.063 302.8)
XYZxyz(3.9837, 3.1774, 7.6097)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2B4E #3F4E2B
analogous
#2B2D4E #3A2B4E #4B2B4E
triadic
#3A2B4E #4E3A2B #2B4E3A
tetradic
#3A2B4E #4E2B2D #3F4E2B #2B4E4B
square
#3A2B4E #4E2B2D #3F4E2B #2B4E4B
split-complementary
#3A2B4E #4E4B2B #2D4E2B
monochromatic
#0F0B14 #1D1527 #3A2B4E #574175 #75569D

Accessibility & contrast

On white

12.84
#3A2B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3A2B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2B4E
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2B4E#FFFFFF#000000##FFFFFF
##3A2B4E1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22324F
Deuteranopia (green-blind)
#26324D
Tritanopia (blue-blind)
#373138
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3a2b4e;
/* rgb */ color: rgb(58, 43, 78);
/* oklch */ color: oklch(32.3% 0.063 302.8);
Tailwind
colors: {
  custom: {
    50: '#71647f',
    500: '#3a2b4e',
    950: '#000000',
  },
}
SCSS
$custom: #3a2b4e;
$custom-light: #71647f;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2b4e",
  "rgb": {
    "r": 58,
    "g": 43,
    "b": 78
  },
  "hsl": {
    "h": 265.714,
    "s": 28.926,
    "l": 23.725
  },
  "oklch": {
    "l": 0.32288,
    "c": 0.06304,
    "h": 302.8
  },
  "luminance": 0.03177
}

Semantic roles & 50–950 ramp

primary
#3A2B4E
secondary
#6D8055
accent
#C5639B
background
#F6F6F7
surface
#ECEBEE
border
#C7C6C9
text
#07050A
muted
#7A7A7C

Preview Lab

Preview with #3A2B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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