#3F1A7C#3F1A7C

#3F1A7C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.152 H 293.7°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#3F1A7C
RGBrgb(63, 26, 124)
HSLhsl(263, 65%, 29%)
HSVhsv(263, 79%, 49%)
CMYKcmyk(49.2%, 79%, 0%, 51.4%)
CIE-LABlab(21.02, 40.14, -48.66)
CIE-LCHlch(21.02, 63.08, 309.52°)
OKLaboklab(33.73% 0.0612 -0.1396)
OKLCHoklch(33.73% 0.152 293.7)
XYZxyz(6.0564, 3.2506, 19.3732)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1A7C #577C1A
analogous
#1A267C #3F1A7C #701A7C
triadic
#3F1A7C #7C3F1A #1A7C3F
tetradic
#3F1A7C #7C1A26 #577C1A #1A7C70
square
#3F1A7C #7C1A26 #577C1A #1A7C70
split-complementary
#3F1A7C #7C701A #267C1A
monochromatic
#0D0519 #250F49 #3F1A7C #5925AF #753BD6

Accessibility & contrast

On white

12.73
#3F1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3F1A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1A7C
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1A7C#FFFFFF#000000##FFFFFF
##3F1A7C1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#2C354A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f1a7c;
/* rgb */ color: rgb(63, 26, 124);
/* oklch */ color: oklch(33.7% 0.152 293.7);
Tailwind
colors: {
  custom: {
    50: '#7b5ba3',
    500: '#3f1a7c',
    950: '#000000',
  },
}
SCSS
$custom: #3f1a7c;
$custom-light: #7b5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1a7c",
  "rgb": {
    "r": 63,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 262.653,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33728,
    "c": 0.15241,
    "h": 293.7
  },
  "luminance": 0.03251
}

Semantic roles & 50–950 ramp

primary
#3F1A7C
secondary
#86B042
accent
#E840A9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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