#3B1BA8#3B1BA8

#3B1BA8 is a dark, highly saturated violet. Relative luminance 0.045; OKLCH L 38.0% C 0.202 H 281.3°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#3B1BA8
RGBrgb(59, 27, 168)
HSLhsl(254, 72%, 38%)
HSVhsv(254, 84%, 66%)
CMYKcmyk(64.9%, 83.9%, 0%, 34.1%)
CIE-LABlab(25.38, 51.71, -68.75)
CIE-LCHlch(25.38, 86.03, 306.95°)
OKLaboklab(38.03% 0.0395 -0.1984)
OKLCHoklch(38.03% 0.202 281.3)
XYZxyz(9.2612, 4.5401, 37.4265)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1BA8 #88A81B
analogous
#1B41A8 #3B1BA8 #811BA8
triadic
#3B1BA8 #A83B1B #1BA83B
tetradic
#3B1BA8 #A81B41 #88A81B #1BA881
square
#3B1BA8 #A81B41 #88A81B #1BA881
split-complementary
#3B1BA8 #A8811B #41A81B
monochromatic
#160A3F #281373 #3B1BA8 #4E24DC #7959E4

Accessibility & contrast

On white

11.01
#3B1BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3B1BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1BA8
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1BA8#FFFFFF#000000##FFFFFF
##3B1BA81.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AC
Deuteranopia (green-blind)
#0037A6
Tritanopia (blue-blind)
#004864
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3b1ba8;
/* rgb */ color: rgb(59, 27, 168);
/* oklch */ color: oklch(38.0% 0.202 281.3);
Tailwind
colors: {
  custom: {
    50: '#815ec3',
    500: '#3b1ba8',
    950: '#000000',
  },
}
SCSS
$custom: #3b1ba8;
$custom-light: #815ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1ba8",
  "rgb": {
    "r": 59,
    "g": 27,
    "b": 168
  },
  "hsl": {
    "h": 253.617,
    "s": 72.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38032,
    "c": 0.20228,
    "h": 281.3
  },
  "luminance": 0.04541
}

Semantic roles & 50–950 ramp

primary
#3B1BA8
secondary
#AEC857
accent
#EF39C6
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3B1BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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