#3A245C#3A245C

#3A245C is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.9% C 0.097 H 298.9°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#3A245C
RGBrgb(58, 36, 92)
HSLhsl(264, 44%, 25%)
HSVhsv(264, 61%, 36%)
CMYKcmyk(37%, 60.9%, 0%, 63.9%)
CIE-LABlab(19.78, 24.05, -29.92)
CIE-LCHlch(19.78, 38.38, 308.79°)
OKLaboklab(31.86% 0.0468 -0.0848)
OKLCHoklch(31.86% 0.097 298.9)
XYZxyz(4.3071, 2.9340, 10.4625)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A245C #465C24
analogous
#242A5C #3A245C #56245C
triadic
#3A245C #5C3A24 #245C3A
tetradic
#3A245C #5C242A #465C24 #245C56
square
#3A245C #5C242A #465C24 #245C56
split-complementary
#3A245C #5C5624 #2A5C24
monochromatic
#0E0916 #1E1330 #3A245C #563588 #7146B4

Accessibility & contrast

On white

13.23
#3A245C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3A245C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A245C
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A245C#FFFFFF#000000##FFFFFF
##3A245C1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A305E
Deuteranopia (green-blind)
#132F5B
Tritanopia (blue-blind)
#332F3C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a245c;
/* rgb */ color: rgb(58, 36, 92);
/* oklch */ color: oklch(31.9% 0.097 298.9);
Tailwind
colors: {
  custom: {
    50: '#735f8a',
    500: '#3a245c',
    950: '#000000',
  },
}
SCSS
$custom: #3a245c;
$custom-light: #735f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a245c",
  "rgb": {
    "r": 58,
    "g": 36,
    "b": 92
  },
  "hsl": {
    "h": 263.571,
    "s": 43.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31856,
    "c": 0.09683,
    "h": 298.9
  },
  "luminance": 0.02934
}

Semantic roles & 50–950 ramp

primary
#3A245C
secondary
#75904C
accent
#D354A2
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08050C
muted
#7B797D

Preview Lab

Preview with #3A245C

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

Preview Lab → · Contrast checker → · Palette generator →

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