#3A246F#3A246F

#3A246F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.4% C 0.123 H 291.8°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#3A246F
RGBrgb(58, 36, 111)
HSLhsl(258, 51%, 29%)
HSVhsv(258, 68%, 44%)
CMYKcmyk(47.7%, 67.6%, 0%, 56.5%)
CIE-LABlab(21.24, 29.83, -39.99)
CIE-LCHlch(21.24, 49.89, 306.72°)
OKLaboklab(33.39% 0.0458 -0.1144)
OKLCHoklch(33.39% 0.123 291.8)
XYZxyz(5.2442, 3.3088, 15.3982)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A246F #596F24
analogous
#24346F #3A246F #60246F
triadic
#3A246F #6F3A24 #246F3A
tetradic
#3A246F #6F2434 #596F24 #246F60
square
#3A246F #6F2434 #596F24 #246F60
split-complementary
#3A246F #6F6024 #346F24
monochromatic
#0C0717 #221541 #3A246F #52339D #6D49C4

Accessibility & contrast

On white

12.64
#3A246F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3A246F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A246F
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A246F#FFFFFF#000000##FFFFFF
##3A246F1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#00316D
Tritanopia (blue-blind)
#2A3646
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3a246f;
/* rgb */ color: rgb(58, 36, 111);
/* oklch */ color: oklch(33.4% 0.123 291.8);
Tailwind
colors: {
  custom: {
    50: '#756099',
    500: '#3a246f',
    950: '#000000',
  },
}
SCSS
$custom: #3a246f;
$custom-light: #756099;
$custom-dark: #000000;
JSON
{
  "hex": "#3a246f",
  "rgb": {
    "r": 58,
    "g": 36,
    "b": 111
  },
  "hsl": {
    "h": 257.6,
    "s": 51.02,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33387,
    "c": 0.12321,
    "h": 291.8
  },
  "luminance": 0.03309
}

Semantic roles & 50–950 ramp

primary
#3A246F
secondary
#89A24D
accent
#DA4DB1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3A246F

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

Preview Lab → · Contrast checker → · Palette generator →

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