#3A2689#3A2689

#3A2689 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.155 H 284.8°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#3A2689
RGBrgb(58, 38, 137)
HSLhsl(252, 57%, 34%)
HSVhsv(252, 72%, 54%)
CMYKcmyk(57.7%, 72.3%, 0%, 46.3%)
CIE-LABlab(23.97, 36.81, -52.04)
CIE-LCHlch(23.97, 63.74, 305.27°)
OKLaboklab(36.06% 0.0396 -0.1497)
OKLCHoklch(36.06% 0.155 284.8)
XYZxyz(6.9520, 4.0915, 24.0855)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2689 #758926
analogous
#264489 #3A2689 #6C2689
triadic
#3A2689 #893A26 #26893A
tetradic
#3A2689 #892644 #758926 #26896C
square
#3A2689 #892644 #758926 #26896C
split-complementary
#3A2689 #896C26 #448926
monochromatic
#110B29 #261959 #3A2689 #4E33B9 #7159D1

Accessibility & contrast

On white

11.55
#3A2689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3A2689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2689
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2689#FFFFFF#000000##FFFFFF
##3A26891.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003687
Tritanopia (blue-blind)
#144054
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a2689;
/* rgb */ color: rgb(58, 38, 137);
/* oklch */ color: oklch(36.1% 0.155 284.8);
Tailwind
colors: {
  custom: {
    50: '#7962ac',
    500: '#3a2689',
    950: '#000000',
  },
}
SCSS
$custom: #3a2689;
$custom-light: #7962ac;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2689",
  "rgb": {
    "r": 58,
    "g": 38,
    "b": 137
  },
  "hsl": {
    "h": 252.121,
    "s": 56.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36061,
    "c": 0.15489,
    "h": 284.8
  },
  "luminance": 0.04092
}

Semantic roles & 50–950 ramp

primary
#3A2689
secondary
#A2B655
accent
#E048C1
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A2689

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

Preview Lab → · Contrast checker → · Palette generator →

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