#3F2995#3F2995

#3F2995 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.166 H 284.7°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#3F2995
RGBrgb(63, 41, 149)
HSLhsl(252, 57%, 37%)
HSVhsv(252, 72%, 58%)
CMYKcmyk(57.7%, 72.5%, 0%, 41.6%)
CIE-LABlab(26.19, 39.66, -55.82)
CIE-LCHlch(26.19, 68.47, 305.40°)
OKLaboklab(38.1% 0.042 -0.1607)
OKLCHoklch(38.1% 0.166 284.7)
XYZxyz(8.2660, 4.8121, 28.9212)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2995 #7F9529
analogous
#294995 #3F2995 #752995
triadic
#3F2995 #953F29 #29953F
tetradic
#3F2995 #952949 #7F9529 #299575
square
#3F2995 #952949 #7F9529 #299575
split-complementary
#3F2995 #957529 #499529
monochromatic
#160F35 #2B1C65 #3F2995 #5336C5 #7B64D4

Accessibility & contrast

On white

10.70
#3F2995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3F2995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2995
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2995#FFFFFF#000000##FFFFFF
##3F29951.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004198
Deuteranopia (green-blind)
#003B93
Tritanopia (blue-blind)
#14465C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f2995;
/* rgb */ color: rgb(63, 41, 149);
/* oklch */ color: oklch(38.1% 0.166 284.7);
Tailwind
colors: {
  custom: {
    50: '#7e65b5',
    500: '#3f2995',
    950: '#000000',
  },
}
SCSS
$custom: #3f2995;
$custom-light: #7e65b5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2995",
  "rgb": {
    "r": 63,
    "g": 41,
    "b": 149
  },
  "hsl": {
    "h": 252.222,
    "s": 56.842,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38105,
    "c": 0.16606,
    "h": 284.7
  },
  "luminance": 0.04813
}

Semantic roles & 50–950 ramp

primary
#3F2995
secondary
#A8BA60
accent
#E048C1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3F2995

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

Preview Lab → · Contrast checker → · Palette generator →

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