#3A146F#3A146F

#3A146F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.143 H 295.7°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#3A146F
RGBrgb(58, 20, 111)
HSLhsl(265, 69%, 26%)
HSVhsv(265, 82%, 44%)
CMYKcmyk(47.7%, 82%, 0%, 56.5%)
CIE-LABlab(18.13, 38.51, -45.07)
CIE-LCHlch(18.13, 59.28, 310.51°)
OKLaboklab(31.18% 0.0622 -0.1292)
OKLCHoklch(31.18% 0.143 295.7)
XYZxyz(4.8635, 2.5474, 15.2713)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A146F #496F14
analogous
#141B6F #3A146F #67146F
triadic
#3A146F #6F3A14 #146F3A
tetradic
#3A146F #6F141B #496F14 #146F67
square
#3A146F #6F141B #496F14 #146F67
split-complementary
#3A146F #6F6714 #1B6F14
monochromatic
#0E051A #1F0B3B #3A146F #551DA3 #7027D7

Accessibility & contrast

On white

13.91
#3A146F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#3A146F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A146F
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A146F#FFFFFF#000000##FFFFFF
##3A146F1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a146f;
/* rgb */ color: rgb(58, 20, 111);
/* oklch */ color: oklch(31.2% 0.143 295.7);
Tailwind
colors: {
  custom: {
    50: '#765799',
    500: '#3a146f',
    950: '#000000',
  },
}
SCSS
$custom: #3a146f;
$custom-light: #765799;
$custom-dark: #000000;
JSON
{
  "hex": "#3a146f",
  "rgb": {
    "r": 58,
    "g": 20,
    "b": 111
  },
  "hsl": {
    "h": 265.055,
    "s": 69.466,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31177,
    "c": 0.14335,
    "h": 295.7
  },
  "luminance": 0.02548
}

Semantic roles & 50–950 ramp

primary
#3A146F
secondary
#78A639
accent
#EC3CA2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A146F

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

Preview Lab → · Contrast checker → · Palette generator →

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