#3A186F#3A186F

#3A186F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.139 H 294.9°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#3A186F
RGBrgb(58, 24, 111)
HSLhsl(263, 64%, 26%)
HSVhsv(263, 78%, 44%)
CMYKcmyk(47.7%, 78.4%, 0%, 56.5%)
CIE-LABlab(18.80, 36.59, -43.97)
CIE-LCHlch(18.80, 57.20, 309.77°)
OKLaboklab(31.65% 0.0586 -0.126)
OKLCHoklch(31.65% 0.139 294.9)
XYZxyz(4.9400, 2.7004, 15.2968)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A186F #4D6F18
analogous
#18226F #3A186F #66186F
triadic
#3A186F #6F3A18 #186F3A
tetradic
#3A186F #6F1822 #4D6F18 #186F66
square
#3A186F #6F1822 #4D6F18 #186F66
split-complementary
#3A186F #6F6618 #226F18
monochromatic
#0D0519 #200D3D #3A186F #5423A1 #6F2FD2

Accessibility & contrast

On white

13.63
#3A186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A186F
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A186F#FFFFFF#000000##FFFFFF
##3A186F1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#2B2F42
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3a186f;
/* rgb */ color: rgb(58, 24, 111);
/* oklch */ color: oklch(31.6% 0.139 294.9);
Tailwind
colors: {
  custom: {
    50: '#765999',
    500: '#3a186f',
    950: '#000000',
  },
}
SCSS
$custom: #3a186f;
$custom-light: #765999;
$custom-dark: #000000;
JSON
{
  "hex": "#3a186f",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 263.448,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31646,
    "c": 0.13896,
    "h": 294.9
  },
  "luminance": 0.02701
}

Semantic roles & 50–950 ramp

primary
#3A186F
secondary
#7DA53E
accent
#E740A6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A186F

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

Preview Lab → · Contrast checker → · Palette generator →

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