#3A1163#3A1163

#3A1163 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.133 H 301.1°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#3A1163
RGBrgb(58, 17, 99)
HSLhsl(270, 71%, 23%)
HSVhsv(270, 83%, 39%)
CMYKcmyk(41.4%, 82.8%, 0%, 61.2%)
CIE-LABlab(16.51, 36.60, -39.85)
CIE-LCHlch(16.51, 54.11, 312.56°)
OKLaboklab(29.69% 0.0686 -0.1138)
OKLCHoklch(29.69% 0.133 301.1)
XYZxyz(4.1969, 2.2013, 12.0057)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1163 #3A6311
analogous
#111163 #3A1163 #631163
triadic
#3A1163 #633A11 #11633A
tetradic
#3A1163 #631111 #3A6311 #116363
square
#3A1163 #631111 #3A6311 #116363
split-complementary
#3A1163 #636311 #116311
monochromatic
#0F041A #1B082F #3A1163 #591A97 #7723CB

Accessibility & contrast

On white

14.58
#3A1163 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#3A1163 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1163
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1163#FFFFFF#000000##FFFFFF
##3A11631.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002865
Deuteranopia (green-blind)
#002861
Tritanopia (blue-blind)
#31273A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3a1163;
/* rgb */ color: rgb(58, 17, 99);
/* oklch */ color: oklch(29.7% 0.133 301.1);
Tailwind
colors: {
  custom: {
    50: '#755490',
    500: '#3a1163',
    950: '#000000',
  },
}
SCSS
$custom: #3a1163;
$custom-light: #755490;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1163",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 99
  },
  "hsl": {
    "h": 270,
    "s": 70.69,
    "l": 22.745
  },
  "oklch": {
    "l": 0.2969,
    "c": 0.1329,
    "h": 301.1
  },
  "luminance": 0.02201
}

Semantic roles & 50–950 ramp

primary
#3A1163
secondary
#689B34
accent
#ED3A94
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030D
muted
#7B787D

Preview Lab

Preview with #3A1163

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

Preview Lab → · Contrast checker → · Palette generator →

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