#3A246B#3A246B

#3A246B is a dark, moderate violet. Relative luminance 0.032; OKLCH L 33.0% C 0.118 H 293.1°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#3A246B
RGBrgb(58, 36, 107)
HSLhsl(259, 50%, 28%)
HSVhsv(259, 66%, 42%)
CMYKcmyk(45.8%, 66.4%, 0%, 58%)
CIE-LABlab(20.91, 28.59, -37.93)
CIE-LCHlch(20.91, 47.50, 307.01°)
OKLaboklab(33.05% 0.0462 -0.1083)
OKLCHoklch(33.05% 0.118 293.1)
XYZxyz(5.0289, 3.2227, 14.2641)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A246B #556B24
analogous
#24316B #3A246B #5D246B
triadic
#3A246B #6B3A24 #246B3A
tetradic
#3A246B #6B2431 #556B24 #246B5D
square
#3A246B #6B2431 #556B24 #246B5D
split-complementary
#3A246B #6B5D24 #316B24
monochromatic
#0C0817 #21153D #3A246B #533399 #6E48C1

Accessibility & contrast

On white

12.77
#3A246B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3A246B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A246B
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A246B#FFFFFF#000000##FFFFFF
##3A246B1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a246b;
/* rgb */ color: rgb(58, 36, 107);
/* oklch */ color: oklch(33.0% 0.118 293.1);
Tailwind
colors: {
  custom: {
    50: '#756096',
    500: '#3a246b',
    950: '#000000',
  },
}
SCSS
$custom: #3a246b;
$custom-light: #756096;
$custom-dark: #000000;
JSON
{
  "hex": "#3a246b",
  "rgb": {
    "r": 58,
    "g": 36,
    "b": 107
  },
  "hsl": {
    "h": 258.592,
    "s": 49.65,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33048,
    "c": 0.11776,
    "h": 293.1
  },
  "luminance": 0.03223
}

Semantic roles & 50–950 ramp

primary
#3A246B
secondary
#859E4D
accent
#D94FAE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #3A246B

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

Preview Lab → · Contrast checker → · Palette generator →

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