#3A2D64#3A2D64

#3A2D64 is a dark, moderate violet. Relative luminance 0.037; OKLCH L 34.2% C 0.093 H 291.6°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#3A2D64
RGBrgb(58, 45, 100)
HSLhsl(254, 38%, 28%)
HSVhsv(254, 55%, 39%)
CMYKcmyk(42%, 55%, 0%, 60.8%)
CIE-LABlab(22.64, 20.58, -30.59)
CIE-LCHlch(22.64, 36.87, 303.93°)
OKLaboklab(34.15% 0.0343 -0.0867)
OKLCHoklch(34.15% 0.093 291.6)
XYZxyz(4.9829, 3.6963, 12.5050)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2D64 #57642D
analogous
#2D3B64 #3A2D64 #552D64
triadic
#3A2D64 #643A2D #2D643A
tetradic
#3A2D64 #642D3B #57642D #2D6455
square
#3A2D64 #642D3B #57642D #2D6455
split-complementary
#3A2D64 #64552D #3B642D
monochromatic
#0C0915 #221A3A #3A2D64 #52408E #6D58B4

Accessibility & contrast

On white

12.07
#3A2D64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3A2D64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2D64
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2D64#FFFFFF#000000##FFFFFF
##3A2D641.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163766
Deuteranopia (green-blind)
#183563
Tritanopia (blue-blind)
#2F3844
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a2d64;
/* rgb */ color: rgb(58, 45, 100);
/* oklch */ color: oklch(34.2% 0.093 291.6);
Tailwind
colors: {
  custom: {
    50: '#736690',
    500: '#3a2d64',
    950: '#000000',
  },
}
SCSS
$custom: #3a2d64;
$custom-light: #736690;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2d64",
  "rgb": {
    "r": 58,
    "g": 45,
    "b": 100
  },
  "hsl": {
    "h": 254.182,
    "s": 37.931,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34154,
    "c": 0.09325,
    "h": 291.6
  },
  "luminance": 0.03696
}

Semantic roles & 50–950 ramp

primary
#3A2D64
secondary
#879657
accent
#CE5AB2
background
#F7F6F8
surface
#EDEBF0
border
#C8C6CB
text
#08060C
muted
#7B7A7D

Preview Lab

Preview with #3A2D64

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

Preview Lab → · Contrast checker → · Palette generator →

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