#3A186C#3A186C

#3A186C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.135 H 296.0°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#3A186C
RGBrgb(58, 24, 108)
HSLhsl(264, 64%, 26%)
HSVhsv(264, 78%, 42%)
CMYKcmyk(46.3%, 77.8%, 0%, 57.6%)
CIE-LABlab(18.52, 35.73, -42.48)
CIE-LCHlch(18.52, 55.51, 310.07°)
OKLaboklab(31.36% 0.0594 -0.1216)
OKLCHoklch(31.36% 0.135 296)
XYZxyz(4.7776, 2.6354, 14.4414)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A186C #4A6C18
analogous
#18206C #3A186C #64186C
triadic
#3A186C #6C3A18 #186C3A
tetradic
#3A186C #6C1820 #4A6C18 #186C64
square
#3A186C #6C1820 #4A6C18 #186C64
split-complementary
#3A186C #6C6418 #206C18
monochromatic
#0D0619 #1F0D3A #3A186C #55239E #702ED0

Accessibility & contrast

On white

13.75
#3A186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3A186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A186C
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A186C#FFFFFF#000000##FFFFFF
##3A186C1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6E
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#2C2E41
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a186c;
/* rgb */ color: rgb(58, 24, 108);
/* oklch */ color: oklch(31.4% 0.135 296.0);
Tailwind
colors: {
  custom: {
    50: '#765997',
    500: '#3a186c',
    950: '#000000',
  },
}
SCSS
$custom: #3a186c;
$custom-light: #765997;
$custom-dark: #000000;
JSON
{
  "hex": "#3a186c",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 264.286,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31362,
    "c": 0.13535,
    "h": 296
  },
  "luminance": 0.02636
}

Semantic roles & 50–950 ramp

primary
#3A186C
secondary
#79A23E
accent
#E741A4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A186C

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

Preview Lab → · Contrast checker → · Palette generator →

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