#3A2B83#3A2B83

#3A2B83 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.3% C 0.141 H 284.8°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#3A2B83
RGBrgb(58, 43, 131)
HSLhsl(250, 51%, 34%)
HSVhsv(250, 67%, 51%)
CMYKcmyk(55.7%, 67.2%, 0%, 48.6%)
CIE-LABlab(24.53, 31.89, -47.37)
CIE-LCHlch(24.53, 57.10, 303.95°)
OKLaboklab(36.3% 0.0358 -0.136)
OKLCHoklch(36.3% 0.141 284.8)
XYZxyz(6.7043, 4.2656, 21.9384)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2B83 #74832B
analogous
#2B4883 #3A2B83 #662B83
triadic
#3A2B83 #833A2B #2B833A
tetradic
#3A2B83 #832B48 #74832B #2B8366
square
#3A2B83 #832B48 #74832B #2B8366
split-complementary
#3A2B83 #83662B #48832B
monochromatic
#110D27 #261C55 #3A2B83 #4E3AB1 #715ECA

Accessibility & contrast

On white

11.33
#3A2B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3A2B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2B83
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2B83#FFFFFF#000000##FFFFFF
##3A2B831.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D86
Deuteranopia (green-blind)
#003781
Tritanopia (blue-blind)
#1B4153
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a2b83;
/* rgb */ color: rgb(58, 43, 131);
/* oklch */ color: oklch(36.3% 0.141 284.8);
Tailwind
colors: {
  custom: {
    50: '#7865a8',
    500: '#3a2b83',
    950: '#000000',
  },
}
SCSS
$custom: #3a2b83;
$custom-light: #7865a8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2b83",
  "rgb": {
    "r": 58,
    "g": 43,
    "b": 131
  },
  "hsl": {
    "h": 250.227,
    "s": 50.575,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36297,
    "c": 0.14068,
    "h": 284.8
  },
  "luminance": 0.04266
}

Semantic roles & 50–950 ramp

primary
#3A2B83
secondary
#A1B05A
accent
#DA4EC2
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #3A2B83

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

Preview Lab → · Contrast checker → · Palette generator →

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