#3B186A#3B186A

#3B186A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.133 H 297.5°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#3B186A
RGBrgb(59, 24, 106)
HSLhsl(266, 63%, 25%)
HSVhsv(266, 77%, 42%)
CMYKcmyk(44.3%, 77.4%, 0%, 58.4%)
CIE-LABlab(18.47, 35.35, -41.25)
CIE-LCHlch(18.47, 54.33, 310.60°)
OKLaboklab(31.3% 0.0615 -0.118)
OKLCHoklch(31.3% 0.133 297.5)
XYZxyz(4.7311, 2.6236, 13.8900)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B186A #476A18
analogous
#181E6A #3B186A #64186A
triadic
#3B186A #6A3B18 #186A3B
tetradic
#3B186A #6A181E #476A18 #186A64
square
#3B186A #6A181E #476A18 #186A64
split-complementary
#3B186A #6A6418 #1E6A18
monochromatic
#0E0619 #1F0D38 #3B186A #57239C #732FCE

Accessibility & contrast

On white

13.77
#3B186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3B186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B186A
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B186A#FFFFFF#000000##FFFFFF
##3B186A1.0013.771.5213.77
#FFFFFF13.771.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#002C68
Tritanopia (blue-blind)
#2F2D3F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3b186a;
/* rgb */ color: rgb(59, 24, 106);
/* oklch */ color: oklch(31.3% 0.133 297.5);
Tailwind
colors: {
  custom: {
    50: '#765995',
    500: '#3b186a',
    950: '#000000',
  },
}
SCSS
$custom: #3b186a;
$custom-light: #765995;
$custom-dark: #000000;
JSON
{
  "hex": "#3b186a",
  "rgb": {
    "r": 59,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 265.61,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31298,
    "c": 0.13306,
    "h": 297.5
  },
  "luminance": 0.02624
}

Semantic roles & 50–950 ramp

primary
#3B186A
secondary
#76A03E
accent
#E642A0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3B186A

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

Preview Lab → · Contrast checker → · Palette generator →

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