#3A186A#3A186A

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

Color values

HEX#3A186A
RGBrgb(58, 24, 106)
HSLhsl(265, 63%, 25%)
HSVhsv(265, 77%, 42%)
CMYKcmyk(45.3%, 77.4%, 0%, 58.4%)
CIE-LABlab(18.34, 35.17, -41.47)
CIE-LCHlch(18.34, 54.38, 310.29°)
OKLaboklab(31.17% 0.0599 -0.1187)
OKLCHoklch(31.17% 0.133 296.8)
XYZxyz(4.6724, 2.5933, 13.8873)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A186A #486A18
analogous
#181F6A #3A186A #63186A
triadic
#3A186A #6A3A18 #186A3A
tetradic
#3A186A #6A181F #486A18 #186A63
square
#3A186A #6A181F #486A18 #186A63
split-complementary
#3A186A #6A6318 #1F6A18
monochromatic
#0E0619 #1F0D38 #3A186A #55239C #712FCE

Accessibility & contrast

On white

13.83
#3A186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A186A
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A186A#FFFFFF#000000##FFFFFF
##3A186A1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a186a;
/* rgb */ color: rgb(58, 24, 106);
/* oklch */ color: oklch(31.2% 0.133 296.8);
Tailwind
colors: {
  custom: {
    50: '#755895',
    500: '#3a186a',
    950: '#000000',
  },
}
SCSS
$custom: #3a186a;
$custom-light: #755895;
$custom-dark: #000000;
JSON
{
  "hex": "#3a186a",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 264.878,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31174,
    "c": 0.13294,
    "h": 296.8
  },
  "luminance": 0.02593
}

Semantic roles & 50–950 ramp

primary
#3A186A
secondary
#77A03E
accent
#E642A2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A186A

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

Preview Lab → · Contrast checker → · Palette generator →

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