#3A186E#3A186E

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

Color values

HEX#3A186E
RGBrgb(58, 24, 110)
HSLhsl(264, 64%, 26%)
HSVhsv(264, 78%, 43%)
CMYKcmyk(47.3%, 78.2%, 0%, 56.9%)
CIE-LABlab(18.71, 36.30, -43.47)
CIE-LCHlch(18.71, 56.64, 309.86°)
OKLaboklab(31.55% 0.0589 -0.1245)
OKLCHoklch(31.55% 0.138 295.3)
XYZxyz(4.8853, 2.6785, 15.0084)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A186E #4C6E18
analogous
#18216E #3A186E #65186E
triadic
#3A186E #6E3A18 #186E3A
tetradic
#3A186E #6E1821 #4C6E18 #186E65
square
#3A186E #6E1821 #4C6E18 #186E65
split-complementary
#3A186E #6E6518 #216E18
monochromatic
#0D0519 #200D3C #3A186E #5423A0 #6F2FD2

Accessibility & contrast

On white

13.67
#3A186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A186E
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A186E#FFFFFF#000000##FFFFFF
##3A186E1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a186e;
/* rgb */ color: rgb(58, 24, 110);
/* oklch */ color: oklch(31.6% 0.138 295.3);
Tailwind
colors: {
  custom: {
    50: '#765998',
    500: '#3a186e',
    950: '#000000',
  },
}
SCSS
$custom: #3a186e;
$custom-light: #765998;
$custom-dark: #000000;
JSON
{
  "hex": "#3a186e",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 263.721,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31551,
    "c": 0.13776,
    "h": 295.3
  },
  "luminance": 0.02679
}

Semantic roles & 50–950 ramp

primary
#3A186E
secondary
#7CA43E
accent
#E741A5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A186E

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

Preview Lab → · Contrast checker → · Palette generator →

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