#3B125A#3B125A

#3B125A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.122 H 306.0°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#3B125A
RGBrgb(59, 18, 90)
HSLhsl(274, 67%, 21%)
HSVhsv(274, 80%, 35%)
CMYKcmyk(34.4%, 80%, 0%, 64.7%)
CIE-LABlab(16.01, 33.98, -34.67)
CIE-LCHlch(16.01, 48.54, 314.43°)
OKLaboklab(29.12% 0.0716 -0.0986)
OKLCHoklch(29.12% 0.122 306)
XYZxyz(3.8650, 2.1006, 9.8727)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B125A #315A12
analogous
#17125A #3B125A #5A1255
triadic
#3B125A #5A3B12 #125A3B
tetradic
#3B125A #5A1712 #315A12 #12555A
square
#3B125A #5A1712 #315A12 #12555A
split-complementary
#3B125A #555A12 #125A17
monochromatic
#11051A #1A0827 #3B125A #5C1C8D #7E26C0

Accessibility & contrast

On white

14.79
#3B125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B125A
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B125A#FFFFFF#000000##FFFFFF
##3B125A1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#002859
Tritanopia (blue-blind)
#352435
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3b125a;
/* rgb */ color: rgb(59, 18, 90);
/* oklch */ color: oklch(29.1% 0.122 306.0);
Tailwind
colors: {
  custom: {
    50: '#755589',
    500: '#3b125a',
    950: '#000000',
  },
}
SCSS
$custom: #3b125a;
$custom-light: #755589;
$custom-dark: #000000;
JSON
{
  "hex": "#3b125a",
  "rgb": {
    "r": 59,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 274.167,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.29117,
    "c": 0.12182,
    "h": 306
  },
  "luminance": 0.02101
}

Semantic roles & 50–950 ramp

primary
#3B125A
secondary
#5D9335
accent
#EA3E88
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3B125A

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

Preview Lab → · Contrast checker → · Palette generator →

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