#3F1372#3F1372

#3F1372 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.148 H 298.3°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#3F1372
RGBrgb(63, 19, 114)
HSLhsl(268, 71%, 26%)
HSVhsv(268, 83%, 45%)
CMYKcmyk(44.7%, 83.3%, 0%, 55.3%)
CIE-LABlab(18.96, 40.56, -45.63)
CIE-LCHlch(18.96, 61.05, 311.64°)
OKLaboklab(31.99% 0.0702 -0.1306)
OKLCHoklch(31.99% 0.148 298.3)
XYZxyz(5.3192, 2.7373, 16.1644)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1372 #467213
analogous
#131772 #3F1372 #6E1372
triadic
#3F1372 #723F13 #13723F
tetradic
#3F1372 #721317 #467213 #13726E
square
#3F1372 #721317 #467213 #13726E
split-complementary
#3F1372 #726E13 #177213
monochromatic
#0E041A #220A3E #3F1372 #5C1CA6 #7925DB

Accessibility & contrast

On white

13.57
#3F1372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3F1372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1372
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1372#FFFFFF#000000##FFFFFF
##3F13721.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#322E43
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3f1372;
/* rgb */ color: rgb(63, 19, 114);
/* oklch */ color: oklch(32.0% 0.148 298.3);
Tailwind
colors: {
  custom: {
    50: '#7a579b',
    500: '#3f1372',
    950: '#000000',
  },
}
SCSS
$custom: #3f1372;
$custom-light: #7a579b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1372",
  "rgb": {
    "r": 63,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 267.789,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31994,
    "c": 0.14829,
    "h": 298.3
  },
  "luminance": 0.02737
}

Semantic roles & 50–950 ramp

primary
#3F1372
secondary
#75A938
accent
#EE3A9B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3F1372

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

Preview Lab → · Contrast checker → · Palette generator →

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