#3A258F#3A258F

#3A258F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.164 H 283.8°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#3A258F
RGBrgb(58, 37, 143)
HSLhsl(252, 59%, 35%)
HSVhsv(252, 74%, 56%)
CMYKcmyk(59.4%, 74.1%, 0%, 43.9%)
CIE-LABlab(24.34, 39.27, -55.17)
CIE-LCHlch(24.34, 67.72, 305.44°)
OKLaboklab(36.5% 0.0392 -0.1589)
OKLCHoklch(36.5% 0.164 283.8)
XYZxyz(7.3629, 4.2054, 26.4050)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A258F #7A8F25
analogous
#25458F #3A258F #6F258F
triadic
#3A258F #8F3A25 #258F3A
tetradic
#3A258F #8F2545 #7A8F25 #258F6F
square
#3A258F #8F2545 #7A8F25 #258F6F
split-complementary
#3A258F #8F6F25 #458F25
monochromatic
#130C2E #26185E #3A258F #4E32C0 #725AD4

Accessibility & contrast

On white

11.41
#3A258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A258F
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A258F#FFFFFF#000000##FFFFFF
##3A258F1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#094258
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a258f;
/* rgb */ color: rgb(58, 37, 143);
/* oklch */ color: oklch(36.5% 0.164 283.8);
Tailwind
colors: {
  custom: {
    50: '#7b62b1',
    500: '#3a258f',
    950: '#000000',
  },
}
SCSS
$custom: #3a258f;
$custom-light: #7b62b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a258f",
  "rgb": {
    "r": 58,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 251.887,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36497,
    "c": 0.16367,
    "h": 283.8
  },
  "luminance": 0.04206
}

Semantic roles & 50–950 ramp

primary
#3A258F
secondary
#A6B957
accent
#E246C3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3A258F

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

Preview Lab → · Contrast checker → · Palette generator →

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