#3A246D#3A246D

#3A246D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.2% C 0.120 H 292.5°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#3A246D
RGBrgb(58, 36, 109)
HSLhsl(258, 50%, 28%)
HSVhsv(258, 67%, 43%)
CMYKcmyk(46.8%, 67%, 0%, 57.3%)
CIE-LABlab(21.08, 29.21, -38.96)
CIE-LCHlch(21.08, 48.70, 306.86°)
OKLaboklab(33.22% 0.0461 -0.1113)
OKLCHoklch(33.22% 0.12 292.5)
XYZxyz(5.1354, 3.2653, 14.8247)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A246D #576D24
analogous
#24326D #3A246D #5E246D
triadic
#3A246D #6D3A24 #246D3A
tetradic
#3A246D #6D2432 #576D24 #246D5E
square
#3A246D #6D2432 #576D24 #246D5E
split-complementary
#3A246D #6D5E24 #326D24
monochromatic
#0C0817 #22153F #3A246D #52339B #6D49C3

Accessibility & contrast

On white

12.70
#3A246D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A246D
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A246D#FFFFFF#000000##FFFFFF
##3A246D1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#00316B
Tritanopia (blue-blind)
#2B3545
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3a246d;
/* rgb */ color: rgb(58, 36, 109);
/* oklch */ color: oklch(33.2% 0.120 292.5);
Tailwind
colors: {
  custom: {
    50: '#756097',
    500: '#3a246d',
    950: '#000000',
  },
}
SCSS
$custom: #3a246d;
$custom-light: #756097;
$custom-dark: #000000;
JSON
{
  "hex": "#3a246d",
  "rgb": {
    "r": 58,
    "g": 36,
    "b": 109
  },
  "hsl": {
    "h": 258.082,
    "s": 50.345,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33217,
    "c": 0.12049,
    "h": 292.5
  },
  "luminance": 0.03265
}

Semantic roles & 50–950 ramp

primary
#3A246D
secondary
#87A04D
accent
#DA4EB0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #3A246D

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

Preview Lab → · Contrast checker → · Palette generator →

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