#3A2285#3A2285

#3A2285 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.154 H 286.5°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#3A2285
RGBrgb(58, 34, 133)
HSLhsl(255, 59%, 33%)
HSVhsv(255, 74%, 52%)
CMYKcmyk(56.4%, 74.4%, 0%, 47.8%)
CIE-LABlab(22.78, 37.82, -51.49)
CIE-LCHlch(22.78, 63.89, 306.30°)
OKLaboklab(35.1% 0.044 -0.1481)
OKLCHoklch(35.1% 0.154 286.5)
XYZxyz(6.5493, 3.7367, 22.5619)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2285 #6D8522
analogous
#223C85 #3A2285 #6B2285
triadic
#3A2285 #853A22 #22853A
tetradic
#3A2285 #85223C #6D8522 #22856B
square
#3A2285 #85223C #6D8522 #22856B
split-complementary
#3A2285 #856B22 #3C8522
monochromatic
#0F0924 #251654 #3A2285 #4F2EB6 #6F4FD2

Accessibility & contrast

On white

12.02
#3A2285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2285
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2285#FFFFFF#000000##FFFFFF
##3A22851.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#003483
Tritanopia (blue-blind)
#193D51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a2285;
/* rgb */ color: rgb(58, 34, 133);
/* oklch */ color: oklch(35.1% 0.154 286.5);
Tailwind
colors: {
  custom: {
    50: '#7960a9',
    500: '#3a2285',
    950: '#000000',
  },
}
SCSS
$custom: #3a2285;
$custom-light: #7960a9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2285",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 254.545,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35099,
    "c": 0.15449,
    "h": 286.5
  },
  "luminance": 0.03737
}

Semantic roles & 50–950 ramp

primary
#3A2285
secondary
#9CB64D
accent
#E245BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A2285

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

Preview Lab → · Contrast checker → · Palette generator →

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