#3A268D#3A268D

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

Color values

HEX#3A268D
RGBrgb(58, 38, 141)
HSLhsl(252, 58%, 35%)
HSVhsv(252, 73%, 55%)
CMYKcmyk(58.9%, 73%, 0%, 44.7%)
CIE-LABlab(24.35, 38.08, -53.91)
CIE-LCHlch(24.35, 66.00, 305.23°)
OKLaboklab(36.45% 0.0388 -0.1552)
OKLCHoklch(36.45% 0.16 284)
XYZxyz(7.2443, 4.2084, 25.6247)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A268D #798D26
analogous
#26468D #3A268D #6D268D
triadic
#3A268D #8D3A26 #268D3A
tetradic
#3A268D #8D2646 #798D26 #268D6D
square
#3A268D #8D2646 #798D26 #268D6D
split-complementary
#3A268D #8D6D26 #468D26
monochromatic
#120C2D #26195D #3A268D #4E33BD #725BD3

Accessibility & contrast

On white

11.40
#3A268D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A268D
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A268D#FFFFFF#000000##FFFFFF
##3A268D1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#0D4257
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a268d;
/* rgb */ color: rgb(58, 38, 141);
/* oklch */ color: oklch(36.4% 0.160 284.0);
Tailwind
colors: {
  custom: {
    50: '#7a62af',
    500: '#3a268d',
    950: '#000000',
  },
}
SCSS
$custom: #3a268d;
$custom-light: #7a62af;
$custom-dark: #000000;
JSON
{
  "hex": "#3a268d",
  "rgb": {
    "r": 58,
    "g": 38,
    "b": 141
  },
  "hsl": {
    "h": 251.65,
    "s": 57.542,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36446,
    "c": 0.16,
    "h": 284
  },
  "luminance": 0.04209
}

Semantic roles & 50–950 ramp

primary
#3A268D
secondary
#A5B857
accent
#E147C3
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A268D

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

Preview Lab → · Contrast checker → · Palette generator →

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