#3F1272#3F1272

#3F1272 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.149 H 298.4°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#3F1272
RGBrgb(63, 18, 114)
HSLhsl(268, 73%, 26%)
HSVhsv(268, 84%, 45%)
CMYKcmyk(44.7%, 84.2%, 0%, 55.3%)
CIE-LABlab(18.82, 40.98, -45.86)
CIE-LCHlch(18.82, 61.50, 311.78°)
OKLaboklab(31.9% 0.071 -0.1313)
OKLCHoklch(31.9% 0.149 298.4)
XYZxyz(5.3027, 2.7042, 16.1589)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1272 #457212
analogous
#121572 #3F1272 #6F1272
triadic
#3F1272 #723F12 #12723F
tetradic
#3F1272 #721215 #457212 #12726F
square
#3F1272 #721215 #457212 #12726F
split-complementary
#3F1272 #726F12 #157212
monochromatic
#0F041A #220A3D #3F1272 #5C1AA7 #7923DC

Accessibility & contrast

On white

13.63
#3F1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3F1272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1272
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1272#FFFFFF#000000##FFFFFF
##3F12721.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f1272;
/* rgb */ color: rgb(63, 18, 114);
/* oklch */ color: oklch(31.9% 0.149 298.4);
Tailwind
colors: {
  custom: {
    50: '#7a579b',
    500: '#3f1272',
    950: '#000000',
  },
}
SCSS
$custom: #3f1272;
$custom-light: #7a579b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1272",
  "rgb": {
    "r": 63,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 268.125,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31896,
    "c": 0.14926,
    "h": 298.4
  },
  "luminance": 0.02704
}

Semantic roles & 50–950 ramp

primary
#3F1272
secondary
#73A937
accent
#EF389A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3F1272

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

Preview Lab → · Contrast checker → · Palette generator →

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