#3F1273#3F1273

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

Color values

HEX#3F1273
RGBrgb(63, 18, 115)
HSLhsl(268, 73%, 26%)
HSVhsv(268, 84%, 45%)
CMYKcmyk(45.2%, 84.3%, 0%, 54.9%)
CIE-LABlab(18.92, 41.24, -46.34)
CIE-LCHlch(18.92, 62.03, 311.66°)
OKLaboklab(31.99% 0.0707 -0.1327)
OKLCHoklch(31.99% 0.15 298)
XYZxyz(5.3599, 2.7271, 16.4603)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1273 #467312
analogous
#121573 #3F1273 #6F1273
triadic
#3F1273 #733F12 #12733F
tetradic
#3F1273 #731215 #467312 #12736F
square
#3F1273 #731215 #467312 #12736F
split-complementary
#3F1273 #736F12 #157312
monochromatic
#0E041A #220A3E #3F1273 #5C1AA8 #7923DD

Accessibility & contrast

On white

13.59
#3F1273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1273
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1273#FFFFFF#000000##FFFFFF
##3F12731.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#312E43
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3f1273;
/* rgb */ color: rgb(63, 18, 115);
/* oklch */ color: oklch(32.0% 0.150 298.0);
Tailwind
colors: {
  custom: {
    50: '#7a579c',
    500: '#3f1273',
    950: '#000000',
  },
}
SCSS
$custom: #3f1273;
$custom-light: #7a579c;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1273",
  "rgb": {
    "r": 63,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 267.835,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31994,
    "c": 0.15035,
    "h": 298
  },
  "luminance": 0.02727
}

Semantic roles & 50–950 ramp

primary
#3F1273
secondary
#75AA37
accent
#F0389B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3F1273

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

Preview Lab → · Contrast checker → · Palette generator →

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