#3F2497#3F2497

#3F2497 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.174 H 285.2°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#3F2497
RGBrgb(63, 36, 151)
HSLhsl(254, 61%, 37%)
HSVhsv(254, 76%, 59%)
CMYKcmyk(58.3%, 76.2%, 0%, 40.8%)
CIE-LABlab(25.42, 42.98, -58.32)
CIE-LCHlch(25.42, 72.45, 306.39°)
OKLaboklab(37.62% 0.0456 -0.1679)
OKLCHoklch(37.62% 0.174 285.2)
XYZxyz(8.2650, 4.5524, 29.7153)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2497 #7C9724
analogous
#244397 #3F2497 #792497
triadic
#3F2497 #973F24 #24973F
tetradic
#3F2497 #972443 #7C9724 #249779
square
#3F2497 #972443 #7C9724 #249779
split-complementary
#3F2497 #977924 #439724
monochromatic
#160C34 #2A1866 #3F2497 #5430C8 #7A5DD8

Accessibility & contrast

On white

10.99
#3F2497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3F2497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2497
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2497#FFFFFF#000000##FFFFFF
##3F24971.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#11445C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f2497;
/* rgb */ color: rgb(63, 36, 151);
/* oklch */ color: oklch(37.6% 0.174 285.2);
Tailwind
colors: {
  custom: {
    50: '#7f62b7',
    500: '#3f2497',
    950: '#000000',
  },
}
SCSS
$custom: #3f2497;
$custom-light: #7f62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2497",
  "rgb": {
    "r": 63,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 254.087,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37616,
    "c": 0.17401,
    "h": 285.2
  },
  "luminance": 0.04553
}

Semantic roles & 50–950 ramp

primary
#3F2497
secondary
#A6BD5A
accent
#E543BF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F2497

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

Preview Lab → · Contrast checker → · Palette generator →

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