#3A156F#3A156F

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

Color values

HEX#3A156F
RGBrgb(58, 21, 111)
HSLhsl(265, 68%, 26%)
HSVhsv(265, 81%, 44%)
CMYKcmyk(47.7%, 81.1%, 0%, 56.5%)
CIE-LABlab(18.29, 38.05, -44.80)
CIE-LCHlch(18.29, 58.78, 310.34°)
OKLaboklab(31.29% 0.0613 -0.1284)
OKLCHoklch(31.29% 0.142 295.5)
XYZxyz(4.8816, 2.5834, 15.2773)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A156F #4A6F15
analogous
#151D6F #3A156F #67156F
triadic
#3A156F #6F3A15 #156F3A
tetradic
#3A156F #6F151D #4A6F15 #156F67
square
#3A156F #6F151D #4A6F15 #156F67
split-complementary
#3A156F #6F6715 #1D6F15
monochromatic
#0D051A #1F0B3C #3A156F #551FA2 #7028D6

Accessibility & contrast

On white

13.84
#3A156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A156F
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A156F#FFFFFF#000000##FFFFFF
##3A156F1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D72
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#2B2E42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a156f;
/* rgb */ color: rgb(58, 21, 111);
/* oklch */ color: oklch(31.3% 0.142 295.5);
Tailwind
colors: {
  custom: {
    50: '#765799',
    500: '#3a156f',
    950: '#000000',
  },
}
SCSS
$custom: #3a156f;
$custom-light: #765799;
$custom-dark: #000000;
JSON
{
  "hex": "#3a156f",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 264.667,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31289,
    "c": 0.1423,
    "h": 295.5
  },
  "luminance": 0.02584
}

Semantic roles & 50–950 ramp

primary
#3A156F
secondary
#79A53A
accent
#EB3DA3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A156F

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

Preview Lab → · Contrast checker → · Palette generator →

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