#3F1358#3F1358

#3F1358 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.6% C 0.120 H 310.1°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#3F1358
RGBrgb(63, 19, 88)
HSLhsl(278, 64%, 21%)
HSVhsv(278, 78%, 35%)
CMYKcmyk(28.4%, 78.4%, 0%, 65.5%)
CIE-LABlab(16.64, 33.87, -32.27)
CIE-LCHlch(16.64, 46.79, 316.39°)
OKLaboklab(29.64% 0.077 -0.0914)
OKLCHoklch(29.64% 0.12 310.1)
XYZxyz(4.0439, 2.2272, 9.4475)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1358 #2C5813
analogous
#1C1358 #3F1358 #58134E
triadic
#3F1358 #583F13 #13583F
tetradic
#3F1358 #581C13 #2C5813 #134E58
square
#3F1358 #581C13 #2C5813 #134E58
split-complementary
#3F1358 #4E5813 #13581C
monochromatic
#120519 #1B0826 #3F1358 #631E8A #8729BD

Accessibility & contrast

On white

14.53
#3F1358 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3F1358 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1358
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1358#FFFFFF#000000##FFFFFF
##3F13581.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#052A57
Tritanopia (blue-blind)
#3C2334
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3f1358;
/* rgb */ color: rgb(63, 19, 88);
/* oklch */ color: oklch(29.6% 0.120 310.1);
Tailwind
colors: {
  custom: {
    50: '#775588',
    500: '#3f1358',
    950: '#000000',
  },
}
SCSS
$custom: #3f1358;
$custom-light: #775588;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1358",
  "rgb": {
    "r": 63,
    "g": 19,
    "b": 88
  },
  "hsl": {
    "h": 278.261,
    "s": 64.486,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29643,
    "c": 0.11954,
    "h": 310.1
  },
  "luminance": 0.02227
}

Semantic roles & 50–950 ramp

primary
#3F1358
secondary
#579037
accent
#E7407D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3F1358

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

Preview Lab → · Contrast checker → · Palette generator →

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