#3B187A#3B187A

#3B187A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.152 H 292.0°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#3B187A
RGBrgb(59, 24, 122)
HSLhsl(261, 67%, 29%)
HSVhsv(261, 80%, 48%)
CMYKcmyk(51.6%, 80.3%, 0%, 52.2%)
CIE-LABlab(20.00, 39.89, -49.09)
CIE-LCHlch(20.00, 63.25, 309.10°)
OKLaboklab(32.84% 0.057 -0.141)
OKLCHoklch(32.84% 0.152 292)
XYZxyz(5.6421, 2.9880, 18.6880)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B187A #577A18
analogous
#18267A #3B187A #6C187A
triadic
#3B187A #7A3B18 #187A3B
tetradic
#3B187A #7A1826 #577A18 #187A6C
square
#3B187A #7A1826 #577A18 #187A6C
split-complementary
#3B187A #7A6C18 #267A18
monochromatic
#0C051A #220E47 #3B187A #5422AD #6F35D7

Accessibility & contrast

On white

13.14
#3B187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3B187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B187A
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B187A#FFFFFF#000000##FFFFFF
##3B187A1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#263448
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3b187a;
/* rgb */ color: rgb(59, 24, 122);
/* oklch */ color: oklch(32.8% 0.152 292.0);
Tailwind
colors: {
  custom: {
    50: '#7859a1',
    500: '#3b187a',
    950: '#000000',
  },
}
SCSS
$custom: #3b187a;
$custom-light: #7859a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b187a",
  "rgb": {
    "r": 59,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 261.429,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32839,
    "c": 0.15205,
    "h": 292
  },
  "luminance": 0.02988
}

Semantic roles & 50–950 ramp

primary
#3B187A
secondary
#87AF3F
accent
#EA3EAD
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3B187A

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

Preview Lab → · Contrast checker → · Palette generator →

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