#3A1B68#3A1B68

#3A1B68 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.127 H 296.9°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#3A1B68
RGBrgb(58, 27, 104)
HSLhsl(264, 59%, 26%)
HSVhsv(264, 74%, 41%)
CMYKcmyk(44.2%, 74%, 0%, 59.2%)
CIE-LABlab(18.73, 32.99, -39.53)
CIE-LCHlch(18.73, 51.49, 309.85°)
OKLaboklab(31.4% 0.0572 -0.113)
OKLCHoklch(31.4% 0.127 296.9)
XYZxyz(4.6349, 2.6828, 13.3677)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1B68 #49681B
analogous
#1B2268 #3A1B68 #601B68
triadic
#3A1B68 #683A1B #1B683A
tetradic
#3A1B68 #681B22 #49681B #1B6860
square
#3A1B68 #681B22 #49681B #1B6860
split-complementary
#3A1B68 #68601B #22681B
monochromatic
#0E0618 #1F0E37 #3A1B68 #552899 #7034C9

Accessibility & contrast

On white

13.67
#3A1B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3A1B68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1B68
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1B68#FFFFFF#000000##FFFFFF
##3A1B681.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#002D66
Tritanopia (blue-blind)
#2E2E3F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3a1b68;
/* rgb */ color: rgb(58, 27, 104);
/* oklch */ color: oklch(31.4% 0.127 296.9);
Tailwind
colors: {
  custom: {
    50: '#755a94',
    500: '#3a1b68',
    950: '#000000',
  },
}
SCSS
$custom: #3a1b68;
$custom-light: #755a94;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1b68",
  "rgb": {
    "r": 58,
    "g": 27,
    "b": 104
  },
  "hsl": {
    "h": 264.156,
    "s": 58.779,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31395,
    "c": 0.12663,
    "h": 296.9
  },
  "luminance": 0.02683
}

Semantic roles & 50–950 ramp

primary
#3A1B68
secondary
#789D42
accent
#E246A3
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3A1B68

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

Preview Lab → · Contrast checker → · Palette generator →

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