#3A236A#3A236A

#3A236A is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.8% C 0.118 H 293.8°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#3A236A
RGBrgb(58, 35, 106)
HSLhsl(259, 50%, 28%)
HSVhsv(259, 67%, 42%)
CMYKcmyk(45.3%, 67%, 0%, 58.4%)
CIE-LABlab(20.60, 28.90, -37.78)
CIE-LCHlch(20.60, 47.57, 307.42°)
OKLaboklab(32.8% 0.0476 -0.1079)
OKLCHoklch(32.8% 0.118 293.8)
XYZxyz(4.9468, 3.1421, 13.9787)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A236A #536A23
analogous
#232F6A #3A236A #5E236A
triadic
#3A236A #6A3A23 #236A3A
tetradic
#3A236A #6A232F #536A23 #236A5E
square
#3A236A #6A232F #536A23 #236A5E
split-complementary
#3A236A #6A5E23 #2F6A23
monochromatic
#0D0817 #21143C #3A236A #533298 #6E46C2

Accessibility & contrast

On white

12.90
#3A236A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A236A
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A236A#FFFFFF#000000##FFFFFF
##3A236A1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#003069
Tritanopia (blue-blind)
#2D3343
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3a236a;
/* rgb */ color: rgb(58, 35, 106);
/* oklch */ color: oklch(32.8% 0.118 293.8);
Tailwind
colors: {
  custom: {
    50: '#755f95',
    500: '#3a236a',
    950: '#000000',
  },
}
SCSS
$custom: #3a236a;
$custom-light: #755f95;
$custom-dark: #000000;
JSON
{
  "hex": "#3a236a",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 106
  },
  "hsl": {
    "h": 259.437,
    "s": 50.355,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32798,
    "c": 0.11788,
    "h": 293.8
  },
  "luminance": 0.03142
}

Semantic roles & 50–950 ramp

primary
#3A236A
secondary
#839D4B
accent
#DA4EAD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3A236A

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

Preview Lab → · Contrast checker → · Palette generator →

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