#3B186E#3B186E

#3B186E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.138 H 296.0°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#3B186E
RGBrgb(59, 24, 110)
HSLhsl(264, 64%, 26%)
HSVhsv(264, 78%, 43%)
CMYKcmyk(46.4%, 78.2%, 0%, 56.9%)
CIE-LABlab(18.84, 36.48, -43.26)
CIE-LCHlch(18.84, 56.59, 310.15°)
OKLaboklab(31.67% 0.0605 -0.1239)
OKLCHoklch(31.67% 0.138 296)
XYZxyz(4.9440, 2.7087, 15.0112)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B186E #4B6E18
analogous
#18206E #3B186E #66186E
triadic
#3B186E #6E3B18 #186E3B
tetradic
#3B186E #6E1820 #4B6E18 #186E66
square
#3B186E #6E1820 #4B6E18 #186E66
split-complementary
#3B186E #6E6618 #206E18
monochromatic
#0D0519 #200D3C #3B186E #5623A0 #712FD2

Accessibility & contrast

On white

13.62
#3B186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3B186E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B186E
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B186E#FFFFFF#000000##FFFFFF
##3B186E1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#002D6C
Tritanopia (blue-blind)
#2D2F42
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3b186e;
/* rgb */ color: rgb(59, 24, 110);
/* oklch */ color: oklch(31.7% 0.138 296.0);
Tailwind
colors: {
  custom: {
    50: '#775998',
    500: '#3b186e',
    950: '#000000',
  },
}
SCSS
$custom: #3b186e;
$custom-light: #775998;
$custom-dark: #000000;
JSON
{
  "hex": "#3b186e",
  "rgb": {
    "r": 59,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 264.419,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31672,
    "c": 0.13784,
    "h": 296
  },
  "luminance": 0.02709
}

Semantic roles & 50–950 ramp

primary
#3B186E
secondary
#7AA43E
accent
#E741A3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3B186E

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

Preview Lab → · Contrast checker → · Palette generator →

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