#3F2697#3F2697

#3F2697 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.172 H 284.8°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#3F2697
RGBrgb(63, 38, 151)
HSLhsl(253, 60%, 37%)
HSVhsv(253, 75%, 59%)
CMYKcmyk(58.3%, 74.8%, 0%, 40.8%)
CIE-LABlab(25.79, 41.93, -57.70)
CIE-LCHlch(25.79, 71.33, 306.00°)
OKLaboklab(37.88% 0.044 -0.1662)
OKLCHoklch(37.88% 0.172 284.8)
XYZxyz(8.3272, 4.6768, 29.7361)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2697 #7E9726
analogous
#264697 #3F2697 #772697
triadic
#3F2697 #973F26 #26973F
tetradic
#3F2697 #972646 #7E9726 #269777
square
#3F2697 #972646 #7E9726 #269777
split-complementary
#3F2697 #977726 #469726
monochromatic
#160D35 #2B1A66 #3F2697 #5332C8 #7B60D7

Accessibility & contrast

On white

10.85
#3F2697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3F2697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2697
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2697#FFFFFF#000000##FFFFFF
##3F26971.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#11455C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3f2697;
/* rgb */ color: rgb(63, 38, 151);
/* oklch */ color: oklch(37.9% 0.172 284.8);
Tailwind
colors: {
  custom: {
    50: '#7f63b7',
    500: '#3f2697',
    950: '#000000',
  },
}
SCSS
$custom: #3f2697;
$custom-light: #7f63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2697",
  "rgb": {
    "r": 63,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 253.274,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3788,
    "c": 0.17189,
    "h": 284.8
  },
  "luminance": 0.04677
}

Semantic roles & 50–950 ramp

primary
#3F2697
secondary
#A7BC5C
accent
#E345C0
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3F2697

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

Preview Lab → · Contrast checker → · Palette generator →

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