#3A125A#3A125A

#3A125A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.122 H 305.2°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#3A125A
RGBrgb(58, 18, 90)
HSLhsl(273, 67%, 21%)
HSVhsv(273, 80%, 35%)
CMYKcmyk(35.6%, 80%, 0%, 64.7%)
CIE-LABlab(15.85, 33.77, -34.92)
CIE-LCHlch(15.85, 48.58, 314.04°)
OKLaboklab(28.98% 0.07 -0.0994)
OKLCHoklch(28.98% 0.122 305.2)
XYZxyz(3.8063, 2.0704, 9.8700)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A125A #325A12
analogous
#16125A #3A125A #5A1256
triadic
#3A125A #5A3A12 #125A3A
tetradic
#3A125A #5A1612 #325A12 #12565A
square
#3A125A #5A1612 #325A12 #12565A
split-complementary
#3A125A #565A12 #125A16
monochromatic
#10051A #190827 #3A125A #5B1C8D #7C26C0

Accessibility & contrast

On white

14.85
#3A125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#3A125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A125A
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A125A#FFFFFF#000000##FFFFFF
##3A125A1.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002859
Tritanopia (blue-blind)
#342435
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a125a;
/* rgb */ color: rgb(58, 18, 90);
/* oklch */ color: oklch(29.0% 0.122 305.2);
Tailwind
colors: {
  custom: {
    50: '#745489',
    500: '#3a125a',
    950: '#000000',
  },
}
SCSS
$custom: #3a125a;
$custom-light: #745489;
$custom-dark: #000000;
JSON
{
  "hex": "#3a125a",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 273.333,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28975,
    "c": 0.12156,
    "h": 305.2
  },
  "luminance": 0.0207
}

Semantic roles & 50–950 ramp

primary
#3A125A
secondary
#5F9335
accent
#EA3E8A
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A125A

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

Preview Lab → · Contrast checker → · Palette generator →

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