#3B0F5C#3B0F5C

#3B0F5C is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.0% C 0.128 H 305.5°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#3B0F5C
RGBrgb(59, 15, 92)
HSLhsl(274, 72%, 21%)
HSVhsv(274, 84%, 36%)
CMYKcmyk(35.9%, 83.7%, 0%, 63.9%)
CIE-LABlab(15.72, 35.83, -36.48)
CIE-LCHlch(15.72, 51.13, 314.48°)
OKLaboklab(28.97% 0.0741 -0.1039)
OKLCHoklch(28.97% 0.128 305.5)
XYZxyz(3.9058, 2.0442, 10.3119)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B0F5C #305C0F
analogous
#140F5C #3B0F5C #5C0F56
triadic
#3B0F5C #5C3B0F #0F5C3B
tetradic
#3B0F5C #5C140F #305C0F #0F565C
square
#3B0F5C #5C140F #305C0F #0F565C
split-complementary
#3B0F5C #565C0F #0F5C14
monochromatic
#11041A #190627 #3B0F5C #5D1891 #7E20C5

Accessibility & contrast

On white

14.91
#3B0F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#3B0F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B0F5C
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B0F5C#FFFFFF#000000##FFFFFF
##3B0F5C1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00275A
Tritanopia (blue-blind)
#352335
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3b0f5c;
/* rgb */ color: rgb(59, 15, 92);
/* oklch */ color: oklch(29.0% 0.128 305.5);
Tailwind
colors: {
  custom: {
    50: '#75538b',
    500: '#3b0f5c',
    950: '#000000',
  },
}
SCSS
$custom: #3b0f5c;
$custom-light: #75538b;
$custom-dark: #000000;
JSON
{
  "hex": "#3b0f5c",
  "rgb": {
    "r": 59,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 274.286,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28969,
    "c": 0.12758,
    "h": 305.5
  },
  "luminance": 0.02044
}

Semantic roles & 50–950 ramp

primary
#3B0F5C
secondary
#5C9531
accent
#EF3987
background
#F7F4F8
surface
#EDE8F0
border
#C8C4CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B0F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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