#3A1268#3A1268

#3A1268 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.137 H 298.8°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#3A1268
RGBrgb(58, 18, 104)
HSLhsl(268, 70%, 24%)
HSVhsv(268, 83%, 41%)
CMYKcmyk(44.2%, 82.7%, 0%, 59.2%)
CIE-LABlab(17.14, 37.49, -42.12)
CIE-LCHlch(17.14, 56.39, 311.67°)
OKLaboklab(30.28% 0.0661 -0.1205)
OKLCHoklch(30.28% 0.137 298.8)
XYZxyz(4.4593, 2.3316, 13.3091)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1268 #406812
analogous
#121568 #3A1268 #651268
triadic
#3A1268 #683A12 #12683A
tetradic
#3A1268 #681215 #406812 #126865
square
#3A1268 #681215 #406812 #126865
split-complementary
#3A1268 #686512 #156812
monochromatic
#0F051A #1D0934 #3A1268 #571B9C #7424D0

Accessibility & contrast

On white

14.32
#3A1268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3A1268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1268
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1268#FFFFFF#000000##FFFFFF
##3A12681.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002966
Tritanopia (blue-blind)
#2F2A3D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3a1268;
/* rgb */ color: rgb(58, 18, 104);
/* oklch */ color: oklch(30.3% 0.137 298.8);
Tailwind
colors: {
  custom: {
    50: '#765594',
    500: '#3a1268',
    950: '#000000',
  },
}
SCSS
$custom: #3a1268;
$custom-light: #765594;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1268",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 267.907,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30276,
    "c": 0.13747,
    "h": 298.8
  },
  "luminance": 0.02332
}

Semantic roles & 50–950 ramp

primary
#3A1268
secondary
#6FA036
accent
#ED3B9A
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1268

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

Preview Lab → · Contrast checker → · Palette generator →

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