#3A186B#3A186B

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

Color values

HEX#3A186B
RGBrgb(58, 24, 107)
HSLhsl(265, 63%, 26%)
HSVhsv(265, 78%, 42%)
CMYKcmyk(45.8%, 77.6%, 0%, 58%)
CIE-LABlab(18.43, 35.45, -41.98)
CIE-LCHlch(18.43, 54.94, 310.18°)
OKLaboklab(31.27% 0.0597 -0.1201)
OKLCHoklch(31.27% 0.134 296.4)
XYZxyz(4.7247, 2.6142, 14.1627)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A186B #496B18
analogous
#181F6B #3A186B #63186B
triadic
#3A186B #6B3A18 #186B3A
tetradic
#3A186B #6B181F #496B18 #186B63
square
#3A186B #6B181F #496B18 #186B63
split-complementary
#3A186B #6B6318 #1F6B18
monochromatic
#0E0619 #1F0D39 #3A186B #55239D #702ECF

Accessibility & contrast

On white

13.79
#3A186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A186B
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A186B#FFFFFF#000000##FFFFFF
##3A186B1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#2D2E40
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a186b;
/* rgb */ color: rgb(58, 24, 107);
/* oklch */ color: oklch(31.3% 0.134 296.4);
Tailwind
colors: {
  custom: {
    50: '#765996',
    500: '#3a186b',
    950: '#000000',
  },
}
SCSS
$custom: #3a186b;
$custom-light: #765996;
$custom-dark: #000000;
JSON
{
  "hex": "#3a186b",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 264.578,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31268,
    "c": 0.13415,
    "h": 296.4
  },
  "luminance": 0.02614
}

Semantic roles & 50–950 ramp

primary
#3A186B
secondary
#78A13E
accent
#E641A3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A186B

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

Preview Lab → · Contrast checker → · Palette generator →

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