#3A245D#3A245D

#3A245D is a dark, moderate violet. Relative luminance 0.030; OKLCH L 31.9% C 0.098 H 298.5°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#3A245D
RGBrgb(58, 36, 93)
HSLhsl(263, 44%, 25%)
HSVhsv(263, 61%, 36%)
CMYKcmyk(37.6%, 61.3%, 0%, 63.5%)
CIE-LABlab(19.85, 24.34, -30.47)
CIE-LCHlch(19.85, 39.00, 308.62°)
OKLaboklab(31.93% 0.0469 -0.0864)
OKLCHoklch(31.93% 0.098 298.5)
XYZxyz(4.3511, 2.9516, 10.6943)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A245D #475D24
analogous
#242A5D #3A245D #56245D
triadic
#3A245D #5D3A24 #245D3A
tetradic
#3A245D #5D242A #475D24 #245D56
square
#3A245D #5D242A #475D24 #245D56
split-complementary
#3A245D #5D5624 #2A5D24
monochromatic
#0E0916 #1E1331 #3A245D #563589 #7146B5

Accessibility & contrast

On white

13.20
#3A245D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A245D
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A245D#FFFFFF#000000##FFFFFF
##3A245D1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09305F
Deuteranopia (green-blind)
#112F5C
Tritanopia (blue-blind)
#32303C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a245d;
/* rgb */ color: rgb(58, 36, 93);
/* oklch */ color: oklch(31.9% 0.098 298.5);
Tailwind
colors: {
  custom: {
    50: '#735f8b',
    500: '#3a245d',
    950: '#000000',
  },
}
SCSS
$custom: #3a245d;
$custom-light: #735f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a245d",
  "rgb": {
    "r": 58,
    "g": 36,
    "b": 93
  },
  "hsl": {
    "h": 263.158,
    "s": 44.186,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31931,
    "c": 0.09825,
    "h": 298.5
  },
  "luminance": 0.02952
}

Semantic roles & 50–950 ramp

primary
#3A245D
secondary
#76914C
accent
#D454A2
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08050C
muted
#7B797D

Preview Lab

Preview with #3A245D

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

Preview Lab → · Contrast checker → · Palette generator →

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