#3F1275#3F1275

#3F1275 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.153 H 297.3°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#3F1275
RGBrgb(63, 18, 117)
HSLhsl(267, 73%, 26%)
HSVhsv(267, 85%, 46%)
CMYKcmyk(46.2%, 84.6%, 0%, 54.1%)
CIE-LABlab(19.11, 41.76, -47.31)
CIE-LCHlch(19.11, 63.11, 311.44°)
OKLaboklab(32.19% 0.07 -0.1355)
OKLCHoklch(32.19% 0.153 297.3)
XYZxyz(5.4762, 2.7736, 17.0730)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1275 #487512
analogous
#121775 #3F1275 #711275
triadic
#3F1275 #753F12 #12753F
tetradic
#3F1275 #751217 #487512 #127571
square
#3F1275 #751217 #487512 #127571
split-complementary
#3F1275 #757112 #177512
monochromatic
#0E041B #220A40 #3F1275 #5C1AAA #7824DD

Accessibility & contrast

On white

13.51
#3F1275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1275
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1275#FFFFFF#000000##FFFFFF
##3F12751.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F78
Deuteranopia (green-blind)
#002D73
Tritanopia (blue-blind)
#312F44
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3f1275;
/* rgb */ color: rgb(63, 18, 117);
/* oklch */ color: oklch(32.2% 0.153 297.3);
Tailwind
colors: {
  custom: {
    50: '#7b579e',
    500: '#3f1275',
    950: '#000000',
  },
}
SCSS
$custom: #3f1275;
$custom-light: #7b579e;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1275",
  "rgb": {
    "r": 63,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 267.273,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32191,
    "c": 0.15253,
    "h": 297.3
  },
  "luminance": 0.02774
}

Semantic roles & 50–950 ramp

primary
#3F1275
secondary
#77AC37
accent
#F0389C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3F1275

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

Preview Lab → · Contrast checker → · Palette generator →

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