#3A2383#3A2383

#3A2383 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.151 H 286.8°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#3A2383
RGBrgb(58, 35, 131)
HSLhsl(254, 58%, 33%)
HSVhsv(254, 73%, 51%)
CMYKcmyk(55.7%, 73.3%, 0%, 48.6%)
CIE-LABlab(22.79, 36.64, -50.21)
CIE-LCHlch(22.79, 62.16, 306.12°)
OKLaboklab(35.05% 0.0435 -0.1444)
OKLCHoklch(35.05% 0.151 286.8)
XYZxyz(6.4415, 3.7400, 21.8508)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2383 #6C8323
analogous
#233C83 #3A2383 #6A2383
triadic
#3A2383 #833A23 #23833A
tetradic
#3A2383 #83233C #6C8323 #23836A
square
#3A2383 #83233C #6C8323 #23836A
split-complementary
#3A2383 #836A23 #3C8323
monochromatic
#0F0922 #251653 #3A2383 #4F30B3 #6F50D0

Accessibility & contrast

On white

12.01
#3A2383 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2383
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2383#FFFFFF#000000##FFFFFF
##3A23831.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003986
Deuteranopia (green-blind)
#003481
Tritanopia (blue-blind)
#1B3C50
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a2383;
/* rgb */ color: rgb(58, 35, 131);
/* oklch */ color: oklch(35.0% 0.151 286.8);
Tailwind
colors: {
  custom: {
    50: '#7960a8',
    500: '#3a2383',
    950: '#000000',
  },
}
SCSS
$custom: #3a2383;
$custom-light: #7960a8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2383",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 131
  },
  "hsl": {
    "h": 254.375,
    "s": 57.831,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35049,
    "c": 0.15079,
    "h": 286.8
  },
  "luminance": 0.0374
}

Semantic roles & 50–950 ramp

primary
#3A2383
secondary
#9BB44E
accent
#E147BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A2383

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

Preview Lab → · Contrast checker → · Palette generator →

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