#3A115E#3A115E

#3A115E is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.127 H 303.4°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#3A115E
RGBrgb(58, 17, 94)
HSLhsl(272, 69%, 22%)
HSVhsv(272, 82%, 37%)
CMYKcmyk(38.3%, 81.9%, 0%, 63.1%)
CIE-LABlab(16.05, 35.28, -37.29)
CIE-LCHlch(16.05, 51.33, 313.42°)
OKLaboklab(29.22% 0.07 -0.1063)
OKLCHoklch(29.22% 0.127 303.4)
XYZxyz(3.9653, 2.1086, 10.7856)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A115E #355E11
analogous
#14115E #3A115E #5E115C
triadic
#3A115E #5E3A11 #115E3A
tetradic
#3A115E #5E1411 #355E11 #115C5E
square
#3A115E #5E1411 #355E11 #115C5E
split-complementary
#3A115E #5C5E11 #115E14
monochromatic
#10051A #1A082A #3A115E #5A1A92 #7A24C6

Accessibility & contrast

On white

14.77
#3A115E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#3A115E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A115E
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A115E#FFFFFF#000000##FFFFFF
##3A115E1.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00285C
Tritanopia (blue-blind)
#332537
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3a115e;
/* rgb */ color: rgb(58, 17, 94);
/* oklch */ color: oklch(29.2% 0.127 303.4);
Tailwind
colors: {
  custom: {
    50: '#74548c',
    500: '#3a115e',
    950: '#000000',
  },
}
SCSS
$custom: #3a115e;
$custom-light: #74548c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a115e",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 94
  },
  "hsl": {
    "h": 271.948,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29223,
    "c": 0.12729,
    "h": 303.4
  },
  "luminance": 0.02109
}

Semantic roles & 50–950 ramp

primary
#3A115E
secondary
#629734
accent
#EC3C8E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A115E

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

Preview Lab → · Contrast checker → · Palette generator →

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