#3A258D#3A258D

#3A258D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.161 H 284.2°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#3A258D
RGBrgb(58, 37, 141)
HSLhsl(252, 58%, 35%)
HSVhsv(252, 74%, 55%)
CMYKcmyk(58.9%, 73.8%, 0%, 44.7%)
CIE-LABlab(24.15, 38.64, -54.25)
CIE-LCHlch(24.15, 66.60, 305.46°)
OKLaboklab(36.3% 0.0396 -0.1562)
OKLCHoklch(36.3% 0.161 284.2)
XYZxyz(7.2127, 4.1453, 25.6142)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A258D #788D25
analogous
#25448D #3A258D #6E258D
triadic
#3A258D #8D3A25 #258D3A
tetradic
#3A258D #8D2544 #788D25 #258D6E
square
#3A258D #8D2544 #788D25 #258D6E
split-complementary
#3A258D #8D6E25 #448D25
monochromatic
#120C2C #26185D #3A258D #4E32BD #7259D3

Accessibility & contrast

On white

11.48
#3A258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3A258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A258D
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A258D#FFFFFF#000000##FFFFFF
##3A258D1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#0D4156
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a258d;
/* rgb */ color: rgb(58, 37, 141);
/* oklch */ color: oklch(36.3% 0.161 284.2);
Tailwind
colors: {
  custom: {
    50: '#7a62af',
    500: '#3a258d',
    950: '#000000',
  },
}
SCSS
$custom: #3a258d;
$custom-light: #7a62af;
$custom-dark: #000000;
JSON
{
  "hex": "#3a258d",
  "rgb": {
    "r": 58,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 252.115,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36302,
    "c": 0.16115,
    "h": 284.2
  },
  "luminance": 0.04146
}

Semantic roles & 50–950 ramp

primary
#3A258D
secondary
#A4B856
accent
#E246C2
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A258D

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

Preview Lab → · Contrast checker → · Palette generator →

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