#3F2597#3F2597

#3F2597 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.173 H 285.0°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#3F2597
RGBrgb(63, 37, 151)
HSLhsl(254, 61%, 37%)
HSVhsv(254, 75%, 59%)
CMYKcmyk(58.3%, 75.5%, 0%, 40.8%)
CIE-LABlab(25.60, 42.46, -58.01)
CIE-LCHlch(25.60, 71.89, 306.20°)
OKLaboklab(37.75% 0.0448 -0.1671)
OKLCHoklch(37.75% 0.173 285)
XYZxyz(8.2957, 4.6138, 29.7256)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2597 #7D9725
analogous
#254497 #3F2597 #782597
triadic
#3F2597 #973F25 #25973F
tetradic
#3F2597 #972544 #7D9725 #259778
square
#3F2597 #972544 #7D9725 #259778
split-complementary
#3F2597 #977825 #449725
monochromatic
#160D35 #2A1966 #3F2597 #5431C8 #7A5FD8

Accessibility & contrast

On white

10.92
#3F2597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3F2597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2597
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2597#FFFFFF#000000##FFFFFF
##3F25971.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f2597;
/* rgb */ color: rgb(63, 37, 151);
/* oklch */ color: oklch(37.7% 0.173 285.0);
Tailwind
colors: {
  custom: {
    50: '#7f63b7',
    500: '#3f2597',
    950: '#000000',
  },
}
SCSS
$custom: #3f2597;
$custom-light: #7f63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2597",
  "rgb": {
    "r": 63,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 253.684,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37747,
    "c": 0.17296,
    "h": 285
  },
  "luminance": 0.04614
}

Semantic roles & 50–950 ramp

primary
#3F2597
secondary
#A6BD5B
accent
#E444BF
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3F2597

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

Preview Lab → · Contrast checker → · Palette generator →

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