#3A276E#3A276E

#3A276E is a dark, moderate violet. Relative luminance 0.035; OKLCH L 33.8% C 0.117 H 291.1°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#3A276E
RGBrgb(58, 39, 110)
HSLhsl(256, 48%, 29%)
HSVhsv(256, 65%, 43%)
CMYKcmyk(47.3%, 64.5%, 0%, 56.9%)
CIE-LABlab(21.86, 27.65, -38.34)
CIE-LCHlch(21.86, 47.27, 305.79°)
OKLaboklab(33.81% 0.0423 -0.1095)
OKLCHoklch(33.81% 0.117 291.1)
XYZxyz(5.2841, 3.4762, 15.1414)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A276E #5B6E27
analogous
#27386E #3A276E #5E276E
triadic
#3A276E #6E3A27 #276E3A
tetradic
#3A276E #6E2738 #5B6E27 #276E5E
square
#3A276E #6E2738 #5B6E27 #276E5E
split-complementary
#3A276E #6E5E27 #386E27
monochromatic
#0C0817 #221741 #3A276E #52379B #6D4FC1

Accessibility & contrast

On white

12.39
#3A276E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A276E
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A276E#FFFFFF#000000##FFFFFF
##3A276E1.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003670
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#2B3746
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a276e;
/* rgb */ color: rgb(58, 39, 110);
/* oklch */ color: oklch(33.8% 0.117 291.1);
Tailwind
colors: {
  custom: {
    50: '#756298',
    500: '#3a276e',
    950: '#000000',
  },
}
SCSS
$custom: #3a276e;
$custom-light: #756298;
$custom-dark: #000000;
JSON
{
  "hex": "#3a276e",
  "rgb": {
    "r": 58,
    "g": 39,
    "b": 110
  },
  "hsl": {
    "h": 256.056,
    "s": 47.651,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3381,
    "c": 0.1174,
    "h": 291.1
  },
  "luminance": 0.03476
}

Semantic roles & 50–950 ramp

primary
#3A276E
secondary
#8BA150
accent
#D751B3
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3A276E

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

Preview Lab → · Contrast checker → · Palette generator →

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