#3F1158#3F1158

#3F1158 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.122 H 310.5°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#3F1158
RGBrgb(63, 17, 88)
HSLhsl(279, 68%, 21%)
HSVhsv(279, 81%, 35%)
CMYKcmyk(28.4%, 80.7%, 0%, 65.5%)
CIE-LABlab(16.32, 34.79, -32.79)
CIE-LCHlch(16.32, 47.80, 316.69°)
OKLaboklab(29.42% 0.0792 -0.0929)
OKLCHoklch(29.42% 0.122 310.5)
XYZxyz(4.0115, 2.1623, 9.4367)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1158 #2A5811
analogous
#1B1158 #3F1158 #58114D
triadic
#3F1158 #583F11 #11583F
tetradic
#3F1158 #581B11 #2A5811 #114D58
square
#3F1158 #581B11 #2A5811 #114D58
split-complementary
#3F1158 #4D5811 #11581B
monochromatic
#12051A #1A0725 #3F1158 #641B8B #8825BF

Accessibility & contrast

On white

14.66
#3F1158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#3F1158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1158
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1158#FFFFFF#000000##FFFFFF
##3F11581.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#032957
Tritanopia (blue-blind)
#3C2234
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3f1158;
/* rgb */ color: rgb(63, 17, 88);
/* oklch */ color: oklch(29.4% 0.122 310.5);
Tailwind
colors: {
  custom: {
    50: '#775488',
    500: '#3f1158',
    950: '#000000',
  },
}
SCSS
$custom: #3f1158;
$custom-light: #775488;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1158",
  "rgb": {
    "r": 63,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 278.873,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29417,
    "c": 0.12209,
    "h": 310.5
  },
  "luminance": 0.02162
}

Semantic roles & 50–950 ramp

primary
#3F1158
secondary
#559134
accent
#EA3D7A
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3F1158

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

Preview Lab → · Contrast checker → · Palette generator →

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