#3B125B#3B125B

#3B125B is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.123 H 305.5°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#3B125B
RGBrgb(59, 18, 91)
HSLhsl(274, 67%, 21%)
HSVhsv(274, 80%, 36%)
CMYKcmyk(35.2%, 80.2%, 0%, 64.3%)
CIE-LABlab(16.09, 34.24, -35.20)
CIE-LCHlch(16.09, 49.10, 314.21°)
OKLaboklab(29.21% 0.0713 -0.1001)
OKLCHoklch(29.21% 0.123 305.5)
XYZxyz(3.9078, 2.1178, 10.0984)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B125B #325B12
analogous
#17125B #3B125B #5B1257
triadic
#3B125B #5B3B12 #125B3B
tetradic
#3B125B #5B1712 #325B12 #12575B
square
#3B125B #5B1712 #325B12 #12575B
split-complementary
#3B125B #575B12 #125B17
monochromatic
#11051A #1A0828 #3B125B #5C1C8E #7D26C1

Accessibility & contrast

On white

14.75
#3B125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B125B
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B125B#FFFFFF#000000##FFFFFF
##3B125B1.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00285A
Tritanopia (blue-blind)
#352435
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3b125b;
/* rgb */ color: rgb(59, 18, 91);
/* oklch */ color: oklch(29.2% 0.123 305.5);
Tailwind
colors: {
  custom: {
    50: '#75558a',
    500: '#3b125b',
    950: '#000000',
  },
}
SCSS
$custom: #3b125b;
$custom-light: #75558a;
$custom-dark: #000000;
JSON
{
  "hex": "#3b125b",
  "rgb": {
    "r": 59,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 273.699,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29205,
    "c": 0.12295,
    "h": 305.5
  },
  "luminance": 0.02118
}

Semantic roles & 50–950 ramp

primary
#3B125B
secondary
#5F9335
accent
#EA3E89
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B125B

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

Preview Lab → · Contrast checker → · Palette generator →

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