#3A276F#3A276F

#3A276F is a dark, moderate violet. Relative luminance 0.035; OKLCH L 33.9% C 0.119 H 290.8°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#3A276F
RGBrgb(58, 39, 111)
HSLhsl(256, 48%, 29%)
HSVhsv(256, 65%, 44%)
CMYKcmyk(47.7%, 64.9%, 0%, 56.5%)
CIE-LABlab(21.94, 27.96, -38.86)
CIE-LCHlch(21.94, 47.88, 305.74°)
OKLaboklab(33.89% 0.0423 -0.111)
OKLCHoklch(33.89% 0.119 290.8)
XYZxyz(5.3389, 3.4981, 15.4297)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A276F #5C6F27
analogous
#27386F #3A276F #5E276F
triadic
#3A276F #6F3A27 #276F3A
tetradic
#3A276F #6F2738 #5C6F27 #276F5E
square
#3A276F #6F2738 #5C6F27 #276F5E
split-complementary
#3A276F #6F5E27 #386F27
monochromatic
#0C0817 #221742 #3A276F #52379C #6D4FC1

Accessibility & contrast

On white

12.36
#3A276F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3A276F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A276F
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A276F#FFFFFF#000000##FFFFFF
##3A276F1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003671
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#2A3847
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a276f;
/* rgb */ color: rgb(58, 39, 111);
/* oklch */ color: oklch(33.9% 0.119 290.8);
Tailwind
colors: {
  custom: {
    50: '#756299',
    500: '#3a276f',
    950: '#000000',
  },
}
SCSS
$custom: #3a276f;
$custom-light: #756299;
$custom-dark: #000000;
JSON
{
  "hex": "#3a276f",
  "rgb": {
    "r": 58,
    "g": 39,
    "b": 111
  },
  "hsl": {
    "h": 255.833,
    "s": 48,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33893,
    "c": 0.1188,
    "h": 290.8
  },
  "luminance": 0.03498
}

Semantic roles & 50–950 ramp

primary
#3A276F
secondary
#8CA250
accent
#D850B4
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3A276F

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

Preview Lab → · Contrast checker → · Palette generator →

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