#3A125D#3A125D

#3A125D is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.125 H 303.7°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#3A125D
RGBrgb(58, 18, 93)
HSLhsl(272, 68%, 22%)
HSVhsv(272, 81%, 36%)
CMYKcmyk(37.6%, 80.6%, 0%, 63.5%)
CIE-LABlab(16.12, 34.56, -36.50)
CIE-LCHlch(16.12, 50.27, 313.43°)
OKLaboklab(29.24% 0.0693 -0.104)
OKLCHoklch(29.24% 0.125 303.7)
XYZxyz(3.9366, 2.1225, 10.5561)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A125D #355D12
analogous
#15125D #3A125D #5D125B
triadic
#3A125D #5D3A12 #125D3A
tetradic
#3A125D #5D1512 #355D12 #125B5D
square
#3A125D #5D1512 #355D12 #125B5D
split-complementary
#3A125D #5B5D12 #125D15
monochromatic
#10051A #1A082A #3A125D #5A1C90 #7A26C4

Accessibility & contrast

On white

14.74
#3A125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#3A125D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A125D
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A125D#FFFFFF#000000##FFFFFF
##3A125D1.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00285B
Tritanopia (blue-blind)
#332537
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3a125d;
/* rgb */ color: rgb(58, 18, 93);
/* oklch */ color: oklch(29.2% 0.125 303.7);
Tailwind
colors: {
  custom: {
    50: '#74558c',
    500: '#3a125d',
    950: '#000000',
  },
}
SCSS
$custom: #3a125d;
$custom-light: #74558c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a125d",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 272,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29244,
    "c": 0.12497,
    "h": 303.7
  },
  "luminance": 0.02122
}

Semantic roles & 50–950 ramp

primary
#3A125D
secondary
#629535
accent
#EA3D8E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A125D

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

Preview Lab → · Contrast checker → · Palette generator →

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