#3A125F#3A125F

#3A125F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.127 H 302.7°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#3A125F
RGBrgb(58, 18, 95)
HSLhsl(271, 68%, 22%)
HSVhsv(271, 81%, 37%)
CMYKcmyk(38.9%, 81.1%, 0%, 62.7%)
CIE-LABlab(16.30, 35.08, -37.54)
CIE-LCHlch(16.30, 51.39, 313.06°)
OKLaboklab(29.43% 0.0688 -0.1071)
OKLCHoklch(29.43% 0.127 302.7)
XYZxyz(4.0263, 2.1584, 11.0287)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A125F #375F12
analogous
#14125F #3A125F #5F125E
triadic
#3A125F #5F3A12 #125F3A
tetradic
#3A125F #5F1412 #375F12 #125E5F
square
#3A125F #5F1412 #375F12 #125E5F
split-complementary
#3A125F #5E5F12 #125F14
monochromatic
#10051A #1B082C #3A125F #591C92 #7925C6

Accessibility & contrast

On white

14.67
#3A125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#3A125F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A125F
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A125F#FFFFFF#000000##FFFFFF
##3A125F1.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#00285D
Tritanopia (blue-blind)
#322638
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3a125f;
/* rgb */ color: rgb(58, 18, 95);
/* oklch */ color: oklch(29.4% 0.127 302.7);
Tailwind
colors: {
  custom: {
    50: '#74558d',
    500: '#3a125f',
    950: '#000000',
  },
}
SCSS
$custom: #3a125f;
$custom-light: #74558d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a125f",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 271.169,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29427,
    "c": 0.12725,
    "h": 302.7
  },
  "luminance": 0.02158
}

Semantic roles & 50–950 ramp

primary
#3A125F
secondary
#649736
accent
#EB3D91
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A125F

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

Preview Lab → · Contrast checker → · Palette generator →

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