#3B1870#3B1870

#3B1870 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.140 H 295.3°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#3B1870
RGBrgb(59, 24, 112)
HSLhsl(264, 65%, 27%)
HSVhsv(264, 79%, 44%)
CMYKcmyk(47.3%, 78.6%, 0%, 56.1%)
CIE-LABlab(19.03, 37.05, -44.24)
CIE-LCHlch(19.03, 57.71, 309.94°)
OKLaboklab(31.86% 0.06 -0.1268)
OKLCHoklch(31.86% 0.14 295.3)
XYZxyz(5.0541, 2.7528, 15.5911)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1870 #4D7018
analogous
#182170 #3B1870 #671870
triadic
#3B1870 #703B18 #18703B
tetradic
#3B1870 #701821 #4D7018 #187067
square
#3B1870 #701821 #4D7018 #187067
split-complementary
#3B1870 #706718 #217018
monochromatic
#0D0519 #200D3E #3B1870 #5623A2 #7130D3

Accessibility & contrast

On white

13.54
#3B1870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3B1870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1870
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1870#FFFFFF#000000##FFFFFF
##3B18701.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#2C3043
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3b1870;
/* rgb */ color: rgb(59, 24, 112);
/* oklch */ color: oklch(31.9% 0.140 295.3);
Tailwind
colors: {
  custom: {
    50: '#77599a',
    500: '#3b1870',
    950: '#000000',
  },
}
SCSS
$custom: #3b1870;
$custom-light: #77599a;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1870",
  "rgb": {
    "r": 59,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 263.864,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31862,
    "c": 0.14022,
    "h": 295.3
  },
  "luminance": 0.02753
}

Semantic roles & 50–950 ramp

primary
#3B1870
secondary
#7CA53E
accent
#E840A5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3B1870

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

Preview Lab → · Contrast checker → · Palette generator →

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