#3F2A6A#3F2A6A

#3F2A6A is a dark, moderate violet. Relative luminance 0.038; OKLCH L 34.6% C 0.107 H 295.4°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#3F2A6A
RGBrgb(63, 42, 106)
HSLhsl(260, 43%, 29%)
HSVhsv(260, 60%, 42%)
CMYKcmyk(40.6%, 60.4%, 0%, 58.4%)
CIE-LABlab(22.84, 25.74, -34.15)
CIE-LCHlch(22.84, 42.76, 307.01°)
OKLaboklab(34.56% 0.046 -0.097)
OKLCHoklch(34.56% 0.107 295.4)
XYZxyz(5.4787, 3.7532, 14.0687)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2A6A #556A2A
analogous
#2A356A #3F2A6A #5F2A6A
triadic
#3F2A6A #6A3F2A #2A6A3F
tetradic
#3F2A6A #6A2A35 #556A2A #2A6A5F
square
#3F2A6A #6A2A35 #556A2A #2A6A5F
split-complementary
#3F2A6A #6A5F2A #356A2A
monochromatic
#0D0916 #25193E #3F2A6A #593B96 #7553BB

Accessibility & contrast

On white

12.00
#3F2A6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3F2A6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2A6A
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2A6A#FFFFFF#000000##FFFFFF
##3F2A6A1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08376C
Deuteranopia (green-blind)
#103669
Tritanopia (blue-blind)
#343845
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f2a6a;
/* rgb */ color: rgb(63, 42, 106);
/* oklch */ color: oklch(34.6% 0.107 295.4);
Tailwind
colors: {
  custom: {
    50: '#776495',
    500: '#3f2a6a',
    950: '#000000',
  },
}
SCSS
$custom: #3f2a6a;
$custom-light: #776495;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2a6a",
  "rgb": {
    "r": 63,
    "g": 42,
    "b": 106
  },
  "hsl": {
    "h": 259.688,
    "s": 43.243,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34563,
    "c": 0.10734,
    "h": 295.4
  },
  "luminance": 0.03753
}

Semantic roles & 50–950 ramp

primary
#3F2A6A
secondary
#849C54
accent
#D355AA
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09050D
muted
#7B7A7E

Preview Lab

Preview with #3F2A6A

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

Preview Lab → · Contrast checker → · Palette generator →

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