#3A156B#3A156B

#3A156B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.138 H 297.0°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#3A156B
RGBrgb(58, 21, 107)
HSLhsl(266, 67%, 25%)
HSVhsv(266, 80%, 42%)
CMYKcmyk(45.8%, 80.4%, 0%, 58%)
CIE-LABlab(17.91, 36.93, -42.83)
CIE-LCHlch(17.91, 56.55, 310.77°)
OKLaboklab(30.9% 0.0625 -0.1226)
OKLCHoklch(30.9% 0.138 297)
XYZxyz(4.6662, 2.4973, 14.1432)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A156B #466B15
analogous
#151B6B #3A156B #65156B
triadic
#3A156B #6B3A15 #156B3A
tetradic
#3A156B #6B151B #466B15 #156B65
square
#3A156B #6B151B #466B15 #156B65
split-complementary
#3A156B #6B6515 #1B6B15
monochromatic
#0E051A #1E0B38 #3A156B #561F9E #7129D1

Accessibility & contrast

On white

14.01
#3A156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A156B
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A156B#FFFFFF#000000##FFFFFF
##3A156B1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6D
Deuteranopia (green-blind)
#002B69
Tritanopia (blue-blind)
#2D2C3F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a156b;
/* rgb */ color: rgb(58, 21, 107);
/* oklch */ color: oklch(30.9% 0.138 297.0);
Tailwind
colors: {
  custom: {
    50: '#765796',
    500: '#3a156b',
    950: '#000000',
  },
}
SCSS
$custom: #3a156b;
$custom-light: #765796;
$custom-dark: #000000;
JSON
{
  "hex": "#3a156b",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 265.814,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30901,
    "c": 0.13764,
    "h": 297
  },
  "luminance": 0.02497
}

Semantic roles & 50–950 ramp

primary
#3A156B
secondary
#75A23A
accent
#EA3EA0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A156B

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

Preview Lab → · Contrast checker → · Palette generator →

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