#3A255D#3A255D

#3A255D is a dark, moderate violet. Relative luminance 0.030; OKLCH L 32.1% C 0.097 H 298.1°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#3A255D
RGBrgb(58, 37, 93)
HSLhsl(263, 43%, 25%)
HSVhsv(263, 60%, 36%)
CMYKcmyk(37.6%, 60.2%, 0%, 63.5%)
CIE-LABlab(20.10, 23.70, -30.07)
CIE-LCHlch(20.10, 38.29, 308.24°)
OKLaboklab(32.11% 0.0454 -0.0852)
OKLCHoklch(32.11% 0.097 298.1)
XYZxyz(4.3818, 3.0129, 10.7045)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A255D #485D25
analogous
#252C5D #3A255D #56255D
triadic
#3A255D #5D3A25 #255D3A
tetradic
#3A255D #5D252C #485D25 #255D56
square
#3A255D #5D252C #485D25 #255D56
split-complementary
#3A255D #5D5625 #2C5D25
monochromatic
#0E0916 #1F1431 #3A255D #553689 #7148B5

Accessibility & contrast

On white

13.10
#3A255D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A255D
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A255D#FFFFFF#000000##FFFFFF
##3A255D1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B315F
Deuteranopia (green-blind)
#13305C
Tritanopia (blue-blind)
#32303D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a255d;
/* rgb */ color: rgb(58, 37, 93);
/* oklch */ color: oklch(32.1% 0.097 298.1);
Tailwind
colors: {
  custom: {
    50: '#73608b',
    500: '#3a255d',
    950: '#000000',
  },
}
SCSS
$custom: #3a255d;
$custom-light: #73608b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a255d",
  "rgb": {
    "r": 58,
    "g": 37,
    "b": 93
  },
  "hsl": {
    "h": 262.5,
    "s": 43.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.32112,
    "c": 0.09655,
    "h": 298.1
  },
  "luminance": 0.03013
}

Semantic roles & 50–950 ramp

primary
#3A255D
secondary
#77904D
accent
#D355A4
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08050C
muted
#7B797D

Preview Lab

Preview with #3A255D

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

Preview Lab → · Contrast checker → · Palette generator →

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