#3A258A#3A258A

#3A258A is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.0% C 0.157 H 284.8°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#3A258A
RGBrgb(58, 37, 138)
HSLhsl(252, 58%, 34%)
HSVhsv(252, 73%, 54%)
CMYKcmyk(58%, 73.2%, 0%, 45.9%)
CIE-LABlab(23.86, 37.70, -52.85)
CIE-LCHlch(23.86, 64.92, 305.50°)
OKLaboklab(36.01% 0.0403 -0.1521)
OKLCHoklch(36.01% 0.157 284.8)
XYZxyz(6.9925, 4.0572, 24.4545)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A258A #758A25
analogous
#25438A #3A258A #6D258A
triadic
#3A258A #8A3A25 #258A3A
tetradic
#3A258A #8A2543 #758A25 #258A6D
square
#3A258A #8A2543 #758A25 #258A6D
split-complementary
#3A258A #8A6D25 #438A25
monochromatic
#110B29 #26185A #3A258A #4E32BA #7157D2

Accessibility & contrast

On white

11.59
#3A258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3A258A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A258A
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A258A#FFFFFF#000000##FFFFFF
##3A258A1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#124055
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a258a;
/* rgb */ color: rgb(58, 37, 138);
/* oklch */ color: oklch(36.0% 0.157 284.8);
Tailwind
colors: {
  custom: {
    50: '#7a62ad',
    500: '#3a258a',
    950: '#000000',
  },
}
SCSS
$custom: #3a258a;
$custom-light: #7a62ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3a258a",
  "rgb": {
    "r": 58,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 252.475,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36011,
    "c": 0.15734,
    "h": 284.8
  },
  "luminance": 0.04058
}

Semantic roles & 50–950 ramp

primary
#3A258A
secondary
#A2B754
accent
#E147C1
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A258A

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

Preview Lab → · Contrast checker → · Palette generator →

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