#3A236B#3A236B

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

Color values

HEX#3A236B
RGBrgb(58, 35, 107)
HSLhsl(259, 51%, 28%)
HSVhsv(259, 67%, 42%)
CMYKcmyk(45.8%, 67.3%, 0%, 58%)
CIE-LABlab(20.69, 29.21, -38.30)
CIE-LCHlch(20.69, 48.17, 307.33°)
OKLaboklab(32.88% 0.0475 -0.1094)
OKLCHoklch(32.88% 0.119 293.5)
XYZxyz(4.9991, 3.1630, 14.2542)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A236B #546B23
analogous
#23306B #3A236B #5E236B
triadic
#3A236B #6B3A23 #236B3A
tetradic
#3A236B #6B2330 #546B23 #236B5E
square
#3A236B #6B2330 #546B23 #236B5E
split-complementary
#3A236B #6B5E23 #306B23
monochromatic
#0C0817 #21143D #3A236B #533299 #6E46C2

Accessibility & contrast

On white

12.86
#3A236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3A236B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A236B
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A236B#FFFFFF#000000##FFFFFF
##3A236B1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#003069
Tritanopia (blue-blind)
#2C3443
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3a236b;
/* rgb */ color: rgb(58, 35, 107);
/* oklch */ color: oklch(32.9% 0.119 293.5);
Tailwind
colors: {
  custom: {
    50: '#755f96',
    500: '#3a236b',
    950: '#000000',
  },
}
SCSS
$custom: #3a236b;
$custom-light: #755f96;
$custom-dark: #000000;
JSON
{
  "hex": "#3a236b",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 259.167,
    "s": 50.704,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32882,
    "c": 0.11924,
    "h": 293.5
  },
  "luminance": 0.03163
}

Semantic roles & 50–950 ramp

primary
#3A236B
secondary
#849E4B
accent
#DA4EAD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #3A236B

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

Preview Lab → · Contrast checker → · Palette generator →

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