#3B135E#3B135E

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

Color values

HEX#3B135E
RGBrgb(59, 19, 94)
HSLhsl(272, 66%, 22%)
HSVhsv(272, 80%, 37%)
CMYKcmyk(37.2%, 79.8%, 0%, 63.1%)
CIE-LABlab(16.52, 34.55, -36.51)
CIE-LCHlch(16.52, 50.26, 313.42°)
OKLaboklab(29.59% 0.0696 -0.104)
OKLCHoklch(29.59% 0.125 303.8)
XYZxyz(4.0564, 2.2037, 10.7992)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B135E #365E13
analogous
#15135E #3B135E #5E135C
triadic
#3B135E #5E3B13 #135E3B
tetradic
#3B135E #5E1513 #365E13 #135C5E
square
#3B135E #5E1513 #365E13 #135C5E
split-complementary
#3B135E #5C5E13 #135E15
monochromatic
#100519 #1B092B #3B135E #5B1D91 #7B28C4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3B135E#FFFFFF#000000##FFFFFF
##3B135E1.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)
#002860
Deuteranopia (green-blind)
#00295C
Tritanopia (blue-blind)
#342637
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3b135e;
/* rgb */ color: rgb(59, 19, 94);
/* oklch */ color: oklch(29.6% 0.125 303.8);
Tailwind
colors: {
  custom: {
    50: '#75558c',
    500: '#3b135e',
    950: '#000000',
  },
}
SCSS
$custom: #3b135e;
$custom-light: #75558c;
$custom-dark: #000000;
JSON
{
  "hex": "#3b135e",
  "rgb": {
    "r": 59,
    "g": 19,
    "b": 94
  },
  "hsl": {
    "h": 272,
    "s": 66.372,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29589,
    "c": 0.12513,
    "h": 303.8
  },
  "luminance": 0.02204
}

Semantic roles & 50–950 ramp

primary
#3B135E
secondary
#639637
accent
#E93F8E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B135E

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

Preview Lab → · Contrast checker → · Palette generator →

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