#3A2168#3A2168

#3A2168 is a dark, moderate violet. Relative luminance 0.030; OKLCH L 32.3% C 0.118 H 295.2°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#3A2168
RGBrgb(58, 33, 104)
HSLhsl(261, 52%, 27%)
HSVhsv(261, 68%, 41%)
CMYKcmyk(44.2%, 68.3%, 0%, 59.2%)
CIE-LABlab(19.99, 29.52, -37.48)
CIE-LCHlch(19.99, 47.70, 308.22°)
OKLaboklab(32.3% 0.0502 -0.1069)
OKLCHoklch(32.3% 0.118 295.2)
XYZxyz(4.7868, 2.9866, 13.4183)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2168 #4F6821
analogous
#212C68 #3A2168 #5E2168
triadic
#3A2168 #683A21 #21683A
tetradic
#3A2168 #68212C #4F6821 #21685E
square
#3A2168 #68212C #4F6821 #21685E
split-complementary
#3A2168 #685E21 #2C6821
monochromatic
#0D0717 #20123A #3A2168 #543096 #6E41C3

Accessibility & contrast

On white

13.15
#3A2168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3A2168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2168
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2168#FFFFFF#000000##FFFFFF
##3A21681.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316A
Deuteranopia (green-blind)
#002F67
Tritanopia (blue-blind)
#2E3141
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a2168;
/* rgb */ color: rgb(58, 33, 104);
/* oklch */ color: oklch(32.3% 0.118 295.2);
Tailwind
colors: {
  custom: {
    50: '#745e94',
    500: '#3a2168',
    950: '#000000',
  },
}
SCSS
$custom: #3a2168;
$custom-light: #745e94;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2168",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 261.127,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32302,
    "c": 0.11815,
    "h": 295.2
  },
  "luminance": 0.02987
}

Semantic roles & 50–950 ramp

primary
#3A2168
secondary
#7F9C49
accent
#DB4DA9
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3A2168

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

Preview Lab → · Contrast checker → · Palette generator →

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