#3A156C#3A156C

#3A156C is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.139 H 296.6°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#3A156C
RGBrgb(58, 21, 108)
HSLhsl(266, 67%, 25%)
HSVhsv(266, 81%, 42%)
CMYKcmyk(46.3%, 80.6%, 0%, 57.6%)
CIE-LABlab(18.00, 37.21, -43.33)
CIE-LCHlch(18.00, 57.11, 310.66°)
OKLaboklab(31% 0.0622 -0.1241)
OKLCHoklch(31% 0.139 296.6)
XYZxyz(4.7191, 2.5185, 14.4219)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A156C #476C15
analogous
#151C6C #3A156C #65156C
triadic
#3A156C #6C3A15 #156C3A
tetradic
#3A156C #6C151C #476C15 #156C65
square
#3A156C #6C151C #476C15 #156C65
split-complementary
#3A156C #6C6515 #1C6C15
monochromatic
#0E051A #1E0B39 #3A156C #561F9F #7129D2

Accessibility & contrast

On white

13.96
#3A156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#3A156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A156C
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A156C#FFFFFF#000000##FFFFFF
##3A156C1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#002B6A
Tritanopia (blue-blind)
#2D2D40
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a156c;
/* rgb */ color: rgb(58, 21, 108);
/* oklch */ color: oklch(31.0% 0.139 296.6);
Tailwind
colors: {
  custom: {
    50: '#765797',
    500: '#3a156c',
    950: '#000000',
  },
}
SCSS
$custom: #3a156c;
$custom-light: #765797;
$custom-dark: #000000;
JSON
{
  "hex": "#3a156c",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 265.517,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30997,
    "c": 0.13881,
    "h": 296.6
  },
  "luminance": 0.02519
}

Semantic roles & 50–950 ramp

primary
#3A156C
secondary
#76A33A
accent
#EA3DA1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A156C

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

Preview Lab → · Contrast checker → · Palette generator →

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