#3B115F#3B115F

#3B115F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.129 H 303.7°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#3B115F
RGBrgb(59, 17, 95)
HSLhsl(272, 70%, 22%)
HSVhsv(272, 82%, 37%)
CMYKcmyk(37.9%, 82.1%, 0%, 62.7%)
CIE-LABlab(16.29, 35.73, -37.55)
CIE-LCHlch(16.29, 51.84, 313.58°)
OKLaboklab(29.45% 0.0713 -0.107)
OKLCHoklch(29.45% 0.129 303.7)
XYZxyz(4.0692, 2.1569, 11.0262)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B115F #355F11
analogous
#14115F #3B115F #5F115C
triadic
#3B115F #5F3B11 #115F3B
tetradic
#3B115F #5F1411 #355F11 #115C5F
square
#3B115F #5F1411 #355F11 #115C5F
split-complementary
#3B115F #5C5F11 #115F14
monochromatic
#10051A #1B082B #3B115F #5B1A93 #7B24C7

Accessibility & contrast

On white

14.67
#3B115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#3B115F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B115F
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B115F#FFFFFF#000000##FFFFFF
##3B115F1.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#00285D
Tritanopia (blue-blind)
#342537
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3b115f;
/* rgb */ color: rgb(59, 17, 95);
/* oklch */ color: oklch(29.5% 0.129 303.7);
Tailwind
colors: {
  custom: {
    50: '#75548d',
    500: '#3b115f',
    950: '#000000',
  },
}
SCSS
$custom: #3b115f;
$custom-light: #75548d;
$custom-dark: #000000;
JSON
{
  "hex": "#3b115f",
  "rgb": {
    "r": 59,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 272.308,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29454,
    "c": 0.12864,
    "h": 303.7
  },
  "luminance": 0.02157
}

Semantic roles & 50–950 ramp

primary
#3B115F
secondary
#629834
accent
#EC3B8D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B115F

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

Preview Lab → · Contrast checker → · Palette generator →

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