#3A236E#3A236E

#3A236E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.1% C 0.123 H 292.5°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#3A236E
RGBrgb(58, 35, 110)
HSLhsl(258, 52%, 28%)
HSVhsv(258, 68%, 43%)
CMYKcmyk(47.3%, 68.2%, 0%, 56.9%)
CIE-LABlab(20.93, 30.13, -39.85)
CIE-LCHlch(20.93, 49.96, 307.10°)
OKLaboklab(33.14% 0.0471 -0.1139)
OKLCHoklch(33.14% 0.123 292.5)
XYZxyz(5.1597, 3.2272, 15.0999)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A236E #576E23
analogous
#23316E #3A236E #5F236E
triadic
#3A236E #6E3A23 #236E3A
tetradic
#3A236E #6E2331 #576E23 #236E5F
square
#3A236E #6E2331 #576E23 #236E5F
split-complementary
#3A236E #6E5F23 #316E23
monochromatic
#0C0717 #221440 #3A236E #52329C #6D47C4

Accessibility & contrast

On white

12.76
#3A236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A236E
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A236E#FFFFFF#000000##FFFFFF
##3A236E1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#00316C
Tritanopia (blue-blind)
#2B3545
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3a236e;
/* rgb */ color: rgb(58, 35, 110);
/* oklch */ color: oklch(33.1% 0.123 292.5);
Tailwind
colors: {
  custom: {
    50: '#755f98',
    500: '#3a236e',
    950: '#000000',
  },
}
SCSS
$custom: #3a236e;
$custom-light: #755f98;
$custom-dark: #000000;
JSON
{
  "hex": "#3a236e",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 258.4,
    "s": 51.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33138,
    "c": 0.12329,
    "h": 292.5
  },
  "luminance": 0.03227
}

Semantic roles & 50–950 ramp

primary
#3A236E
secondary
#87A14C
accent
#DB4DAF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3A236E

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

Preview Lab → · Contrast checker → · Palette generator →

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