#3A124F#3A124F

#3A124F is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.109 H 311.4°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#3A124F
RGBrgb(58, 18, 79)
HSLhsl(279, 63%, 19%)
HSVhsv(279, 77%, 31%)
CMYKcmyk(26.6%, 77.2%, 0%, 69%)
CIE-LABlab(14.94, 30.95, -28.95)
CIE-LCHlch(14.94, 42.38, 316.91°)
OKLaboklab(28.04% 0.0721 -0.0818)
OKLCHoklch(28.04% 0.109 311.4)
XYZxyz(3.3722, 1.8968, 7.5841)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A124F #274F12
analogous
#1C124F #3A124F #4F1246
triadic
#3A124F #4F3A12 #124F3A
tetradic
#3A124F #4F1C12 #274F12 #12464F
square
#3A124F #4F1C12 #274F12 #12464F
split-complementary
#3A124F #464F12 #124F1C
monochromatic
#120619 #15071D #3A124F #5F1D81 #8329B3

Accessibility & contrast

On white

15.22
#3A124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#3A124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A124F
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A124F#FFFFFF#000000##FFFFFF
##3A124F1.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#0A264E
Tritanopia (blue-blind)
#371F2F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3a124f;
/* rgb */ color: rgb(58, 18, 79);
/* oklch */ color: oklch(28.0% 0.109 311.4);
Tailwind
colors: {
  custom: {
    50: '#735481',
    500: '#3a124f',
    950: '#000000',
  },
}
SCSS
$custom: #3a124f;
$custom-light: #735481;
$custom-dark: #000000;
JSON
{
  "hex": "#3a124f",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 279.344,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.28036,
    "c": 0.10903,
    "h": 311.4
  },
  "luminance": 0.01897
}

Semantic roles & 50–950 ramp

primary
#3A124F
secondary
#518835
accent
#E6427A
background
#F7F4F7
surface
#EDE8EE
border
#C8C4C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3A124F

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

Preview Lab → · Contrast checker → · Palette generator →

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