#3F0F5B#3F0F5B

#3F0F5B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.128 H 309.1°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#3F0F5B
RGBrgb(63, 15, 91)
HSLhsl(278, 72%, 21%)
HSVhsv(278, 84%, 36%)
CMYKcmyk(30.8%, 83.5%, 0%, 64.3%)
CIE-LABlab(16.27, 36.36, -34.87)
CIE-LCHlch(16.27, 50.38, 316.20°)
OKLaboklab(29.47% 0.0806 -0.099)
OKLCHoklch(29.47% 0.128 309.1)
XYZxyz(4.1087, 2.1538, 10.0948)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F0F5B #2B5B0F
analogous
#190F5B #3F0F5B #5B0F51
triadic
#3F0F5B #5B3F0F #0F5B3F
tetradic
#3F0F5B #5B190F #2B5B0F #0F515B
square
#3F0F5B #5B190F #2B5B0F #0F515B
split-complementary
#3F0F5B #515B0F #0F5B19
monochromatic
#12041A #1B0626 #3F0F5B #631890 #8820C4

Accessibility & contrast

On white

14.68
#3F0F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F0F5B
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F0F5B#FFFFFF#000000##FFFFFF
##3F0F5B1.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#002959
Tritanopia (blue-blind)
#3B2235
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3f0f5b;
/* rgb */ color: rgb(63, 15, 91);
/* oklch */ color: oklch(29.5% 0.128 309.1);
Tailwind
colors: {
  custom: {
    50: '#78548a',
    500: '#3f0f5b',
    950: '#000000',
  },
}
SCSS
$custom: #3f0f5b;
$custom-light: #78548a;
$custom-dark: #000000;
JSON
{
  "hex": "#3f0f5b",
  "rgb": {
    "r": 63,
    "g": 15,
    "b": 91
  },
  "hsl": {
    "h": 277.895,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29466,
    "c": 0.12764,
    "h": 309.1
  },
  "luminance": 0.02154
}

Semantic roles & 50–950 ramp

primary
#3F0F5B
secondary
#569531
accent
#EE397C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F0F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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