#3A226A#3A226A

#3A226A is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.6% C 0.119 H 294.1°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#3A226A
RGBrgb(58, 34, 106)
HSLhsl(260, 51%, 27%)
HSVhsv(260, 68%, 42%)
CMYKcmyk(45.3%, 67.9%, 0%, 58.4%)
CIE-LABlab(20.38, 29.51, -38.15)
CIE-LCHlch(20.38, 48.23, 307.73°)
OKLaboklab(32.63% 0.0488 -0.1089)
OKLCHoklch(32.63% 0.119 294.1)
XYZxyz(4.9178, 3.0841, 13.9691)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A226A #526A22
analogous
#222E6A #3A226A #5E226A
triadic
#3A226A #6A3A22 #226A3A
tetradic
#3A226A #6A222E #526A22 #226A5E
square
#3A226A #6A222E #526A22 #226A5E
split-complementary
#3A226A #6A5E22 #2E6A22
monochromatic
#0D0717 #21133C #3A226A #533198 #6E44C3

Accessibility & contrast

On white

12.99
#3A226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3A226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A226A
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A226A#FFFFFF#000000##FFFFFF
##3A226A1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#003068
Tritanopia (blue-blind)
#2D3342
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a226a;
/* rgb */ color: rgb(58, 34, 106);
/* oklch */ color: oklch(32.6% 0.119 294.1);
Tailwind
colors: {
  custom: {
    50: '#755e95',
    500: '#3a226a',
    950: '#000000',
  },
}
SCSS
$custom: #3a226a;
$custom-light: #755e95;
$custom-dark: #000000;
JSON
{
  "hex": "#3a226a",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 260,
    "s": 51.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32634,
    "c": 0.11936,
    "h": 294.1
  },
  "luminance": 0.03084
}

Semantic roles & 50–950 ramp

primary
#3A226A
secondary
#829E4A
accent
#DB4DAC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3A226A

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

Preview Lab → · Contrast checker → · Palette generator →

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