#3A278B#3A278B

#3A278B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.156 H 284.2°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#3A278B
RGBrgb(58, 39, 139)
HSLhsl(251, 56%, 35%)
HSVhsv(251, 72%, 55%)
CMYKcmyk(58.3%, 71.9%, 0%, 45.5%)
CIE-LABlab(24.37, 36.87, -52.64)
CIE-LCHlch(24.37, 64.27, 305.01°)
OKLaboklab(36.4% 0.0383 -0.1515)
OKLCHoklch(36.4% 0.156 284.2)
XYZxyz(7.1292, 4.2142, 24.8589)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A278B #788B27
analogous
#27468B #3A278B #6C278B
triadic
#3A278B #8B3A27 #278B3A
tetradic
#3A278B #8B2746 #788B27 #278B6C
square
#3A278B #8B2746 #788B27 #278B6C
split-complementary
#3A278B #8B6C27 #468B27
monochromatic
#120C2B #261A5B #3A278B #4E34BB #725BD1

Accessibility & contrast

On white

11.39
#3A278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3A278B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A278B
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A278B#FFFFFF#000000##FFFFFF
##3A278B1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#114256
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a278b;
/* rgb */ color: rgb(58, 39, 139);
/* oklch */ color: oklch(36.4% 0.156 284.2);
Tailwind
colors: {
  custom: {
    50: '#7a63ae',
    500: '#3a278b',
    950: '#000000',
  },
}
SCSS
$custom: #3a278b;
$custom-light: #7a63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3a278b",
  "rgb": {
    "r": 58,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 251.4,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36401,
    "c": 0.15628,
    "h": 284.2
  },
  "luminance": 0.04215
}

Semantic roles & 50–950 ramp

primary
#3A278B
secondary
#A4B658
accent
#DF48C3
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3A278B

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

Preview Lab → · Contrast checker → · Palette generator →

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