#3A246C#3A246C

#3A246C is a dark, moderate violet. Relative luminance 0.032; OKLCH L 33.1% C 0.119 H 292.8°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#3A246C
RGBrgb(58, 36, 108)
HSLhsl(258, 50%, 28%)
HSVhsv(258, 67%, 42%)
CMYKcmyk(46.3%, 66.7%, 0%, 57.6%)
CIE-LABlab(21.00, 28.90, -38.45)
CIE-LCHlch(21.00, 48.10, 306.93°)
OKLaboklab(33.13% 0.0461 -0.1098)
OKLCHoklch(33.13% 0.119 292.8)
XYZxyz(5.0818, 3.2439, 14.5428)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A246C #566C24
analogous
#24326C #3A246C #5E246C
triadic
#3A246C #6C3A24 #246C3A
tetradic
#3A246C #6C2432 #566C24 #246C5E
square
#3A246C #6C2432 #566C24 #246C5E
split-complementary
#3A246C #6C5E24 #326C24
monochromatic
#0C0817 #21153E #3A246C #53339A #6E48C2

Accessibility & contrast

On white

12.74
#3A246C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3A246C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A246C
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A246C#FFFFFF#000000##FFFFFF
##3A246C1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#00316A
Tritanopia (blue-blind)
#2C3544
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3a246c;
/* rgb */ color: rgb(58, 36, 108);
/* oklch */ color: oklch(33.1% 0.119 292.8);
Tailwind
colors: {
  custom: {
    50: '#756097',
    500: '#3a246c',
    950: '#000000',
  },
}
SCSS
$custom: #3a246c;
$custom-light: #756097;
$custom-dark: #000000;
JSON
{
  "hex": "#3a246c",
  "rgb": {
    "r": 58,
    "g": 36,
    "b": 108
  },
  "hsl": {
    "h": 258.333,
    "s": 50,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33132,
    "c": 0.11912,
    "h": 292.8
  },
  "luminance": 0.03244
}

Semantic roles & 50–950 ramp

primary
#3A246C
secondary
#869F4D
accent
#DA4EAF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #3A246C

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

Preview Lab → · Contrast checker → · Palette generator →

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