#3B115E#3B115E

#3B115E is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.128 H 304.2°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#3B115E
RGBrgb(59, 17, 94)
HSLhsl(273, 69%, 22%)
HSVhsv(273, 82%, 37%)
CMYKcmyk(37.2%, 81.9%, 0%, 63.1%)
CIE-LABlab(16.20, 35.47, -37.03)
CIE-LCHlch(16.20, 51.28, 313.77°)
OKLaboklab(29.36% 0.0716 -0.1055)
OKLCHoklch(29.36% 0.128 304.2)
XYZxyz(4.0240, 2.1389, 10.7884)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B115E #345E11
analogous
#15115E #3B115E #5E115B
triadic
#3B115E #5E3B11 #115E3B
tetradic
#3B115E #5E1511 #345E11 #115B5E
square
#3B115E #5E1511 #345E11 #115B5E
split-complementary
#3B115E #5B5E11 #115E15
monochromatic
#10051A #1A082A #3B115E #5C1A92 #7C24C6

Accessibility & contrast

On white

14.71
#3B115E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B115E
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B115E#FFFFFF#000000##FFFFFF
##3B115E1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b115e;
/* rgb */ color: rgb(59, 17, 94);
/* oklch */ color: oklch(29.4% 0.128 304.2);
Tailwind
colors: {
  custom: {
    50: '#75548c',
    500: '#3b115e',
    950: '#000000',
  },
}
SCSS
$custom: #3b115e;
$custom-light: #75548c;
$custom-dark: #000000;
JSON
{
  "hex": "#3b115e",
  "rgb": {
    "r": 59,
    "g": 17,
    "b": 94
  },
  "hsl": {
    "h": 272.727,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29363,
    "c": 0.12752,
    "h": 304.2
  },
  "luminance": 0.02139
}

Semantic roles & 50–950 ramp

primary
#3B115E
secondary
#619734
accent
#EC3C8C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B115E

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

Preview Lab → · Contrast checker → · Palette generator →

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