#3F2391#3F2391

#3F2391 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.168 H 286.6°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#3F2391
RGBrgb(63, 35, 145)
HSLhsl(255, 61%, 35%)
HSVhsv(255, 76%, 57%)
CMYKcmyk(56.6%, 75.9%, 0%, 43.1%)
CIE-LABlab(24.65, 41.70, -55.88)
CIE-LCHlch(24.65, 69.73, 306.73°)
OKLaboklab(36.9% 0.0479 -0.1608)
OKLCHoklch(36.9% 0.168 286.6)
XYZxyz(7.7602, 4.3027, 27.2042)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2391 #759123
analogous
#233E91 #3F2391 #762391
triadic
#3F2391 #913F23 #23913F
tetradic
#3F2391 #91233E #759123 #239176
square
#3F2391 #91233E #759123 #239176
split-complementary
#3F2391 #917623 #3E9123
monochromatic
#140B2E #2A1760 #3F2391 #542FC2 #7858D7

Accessibility & contrast

On white

11.29
#3F2391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3F2391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2391
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2391#FFFFFF#000000##FFFFFF
##3F23911.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#00378F
Tritanopia (blue-blind)
#1A4158
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f2391;
/* rgb */ color: rgb(63, 35, 145);
/* oklch */ color: oklch(36.9% 0.168 286.6);
Tailwind
colors: {
  custom: {
    50: '#7e61b2',
    500: '#3f2391',
    950: '#000000',
  },
}
SCSS
$custom: #3f2391;
$custom-light: #7e61b2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2391",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 255.273,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36895,
    "c": 0.1678,
    "h": 286.6
  },
  "luminance": 0.04303
}

Semantic roles & 50–950 ramp

primary
#3F2391
secondary
#A1BB55
accent
#E444BB
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F2391

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

Preview Lab → · Contrast checker → · Palette generator →

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