#3B0C4E#3B0C4E

#3B0C4E is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.4% C 0.116 H 313.8°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#3B0C4E
RGBrgb(59, 12, 78)
HSLhsl(283, 73%, 18%)
HSVhsv(283, 85%, 31%)
CMYKcmyk(24.4%, 84.6%, 0%, 69.4%)
CIE-LABlab(14.08, 33.64, -29.65)
CIE-LCHlch(14.08, 44.84, 318.61°)
OKLaboklab(27.44% 0.0804 -0.0838)
OKLCHoklch(27.44% 0.116 313.8)
XYZxyz(3.3100, 1.7429, 7.3683)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B0C4E #1F4E0C
analogous
#1A0C4E #3B0C4E #4E0C40
triadic
#3B0C4E #4E3B0C #0C4E3B
tetradic
#3B0C4E #4E1A0C #1F4E0C #0C404E
square
#3B0C4E #4E1A0C #1F4E0C #0C404E
split-complementary
#3B0C4E #404E0C #0C4E1A
monochromatic
#14041B #14041B #3B0C4E #631483 #8B1CB8

Accessibility & contrast

On white

15.57
#3B0C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#3B0C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B0C4E
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B0C4E#FFFFFF#000000##FFFFFF
##3B0C4E1.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002150
Deuteranopia (green-blind)
#06254D
Tritanopia (blue-blind)
#391B2D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3b0c4e;
/* rgb */ color: rgb(59, 12, 78);
/* oklch */ color: oklch(27.4% 0.116 313.8);
Tailwind
colors: {
  custom: {
    50: '#745180',
    500: '#3b0c4e',
    950: '#000000',
  },
}
SCSS
$custom: #3b0c4e;
$custom-light: #745180;
$custom-dark: #000000;
JSON
{
  "hex": "#3b0c4e",
  "rgb": {
    "r": 59,
    "g": 12,
    "b": 78
  },
  "hsl": {
    "h": 282.727,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.27436,
    "c": 0.1161,
    "h": 313.8
  },
  "luminance": 0.01743
}

Semantic roles & 50–950 ramp

primary
#3B0C4E
secondary
#478A2C
accent
#F0386D
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #3B0C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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