#3F2398#3F2398

#3F2398 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.176 H 285.1°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#3F2398
RGBrgb(63, 35, 152)
HSLhsl(254, 63%, 37%)
HSVhsv(254, 77%, 60%)
CMYKcmyk(58.6%, 77%, 0%, 40.4%)
CIE-LABlab(25.34, 43.80, -59.07)
CIE-LCHlch(25.34, 73.53, 306.56°)
OKLaboklab(37.59% 0.046 -0.1701)
OKLCHoklch(37.59% 0.176 285.1)
XYZxyz(8.3167, 4.5253, 30.1349)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2398 #7C9823
analogous
#234298 #3F2398 #7A2398
triadic
#3F2398 #983F23 #23983F
tetradic
#3F2398 #982342 #7C9823 #23987A
square
#3F2398 #982342 #7C9823 #23987A
split-complementary
#3F2398 #987A23 #429823
monochromatic
#160C35 #2A1866 #3F2398 #542ECA #7A5CD9

Accessibility & contrast

On white

11.02
#3F2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F2398
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2398#FFFFFF#000000##FFFFFF
##3F23981.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#10445C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f2398;
/* rgb */ color: rgb(63, 35, 152);
/* oklch */ color: oklch(37.6% 0.176 285.1);
Tailwind
colors: {
  custom: {
    50: '#7f62b7',
    500: '#3f2398',
    950: '#000000',
  },
}
SCSS
$custom: #3f2398;
$custom-light: #7f62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2398",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 254.359,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37589,
    "c": 0.17625,
    "h": 285.1
  },
  "luminance": 0.04526
}

Semantic roles & 50–950 ramp

primary
#3F2398
secondary
#A6BE59
accent
#E642BF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F2398

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

Preview Lab → · Contrast checker → · Palette generator →

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