#3A2482#3A2482

#3A2482 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.1% C 0.148 H 286.8°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#3A2482
RGBrgb(58, 36, 130)
HSLhsl(254, 57%, 33%)
HSVhsv(254, 72%, 51%)
CMYKcmyk(55.4%, 72.3%, 0%, 49%)
CIE-LABlab(22.91, 35.76, -49.40)
CIE-LCHlch(22.91, 60.98, 305.90°)
OKLaboklab(35.1% 0.0428 -0.142)
OKLCHoklch(35.1% 0.148 286.8)
XYZxyz(6.4039, 3.7727, 21.5055)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2482 #6C8224
analogous
#243D82 #3A2482 #692482
triadic
#3A2482 #823A24 #24823A
tetradic
#3A2482 #82243D #6C8224 #248269
square
#3A2482 #82243D #6C8224 #248269
split-complementary
#3A2482 #826924 #3D8224
monochromatic
#0F0922 #251752 #3A2482 #4F31B2 #6F51CF

Accessibility & contrast

On white

11.97
#3A2482 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3A2482 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2482
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2482#FFFFFF#000000##FFFFFF
##3A24821.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003480
Tritanopia (blue-blind)
#1C3D50
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a2482;
/* rgb */ color: rgb(58, 36, 130);
/* oklch */ color: oklch(35.1% 0.148 286.8);
Tailwind
colors: {
  custom: {
    50: '#7861a7',
    500: '#3a2482',
    950: '#000000',
  },
}
SCSS
$custom: #3a2482;
$custom-light: #7861a7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2482",
  "rgb": {
    "r": 58,
    "g": 36,
    "b": 130
  },
  "hsl": {
    "h": 254.043,
    "s": 56.627,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35101,
    "c": 0.1483,
    "h": 286.8
  },
  "luminance": 0.03773
}

Semantic roles & 50–950 ramp

primary
#3A2482
secondary
#9BB34F
accent
#E048BC
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A2482

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

Preview Lab → · Contrast checker → · Palette generator →

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