#3B125D#3B125D

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

Color values

HEX#3B125D
RGBrgb(59, 18, 93)
HSLhsl(273, 68%, 22%)
HSVhsv(273, 81%, 36%)
CMYKcmyk(36.6%, 80.6%, 0%, 63.5%)
CIE-LABlab(16.27, 34.76, -36.25)
CIE-LCHlch(16.27, 50.22, 313.80°)
OKLaboklab(29.38% 0.0709 -0.1032)
OKLCHoklch(29.38% 0.125 304.5)
XYZxyz(3.9953, 2.1527, 10.5588)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B125D #345D12
analogous
#16125D #3B125D #5D125A
triadic
#3B125D #5D3B12 #125D3B
tetradic
#3B125D #5D1612 #345D12 #125A5D
square
#3B125D #5D1612 #345D12 #125A5D
split-complementary
#3B125D #5A5D12 #125D16
monochromatic
#10051A #1A082A #3B125D #5C1C90 #7C26C4

Accessibility & contrast

On white

14.68
#3B125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B125D
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B125D#FFFFFF#000000##FFFFFF
##3B125D1.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00285B
Tritanopia (blue-blind)
#342537
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3b125d;
/* rgb */ color: rgb(59, 18, 93);
/* oklch */ color: oklch(29.4% 0.125 304.5);
Tailwind
colors: {
  custom: {
    50: '#75558c',
    500: '#3b125d',
    950: '#000000',
  },
}
SCSS
$custom: #3b125d;
$custom-light: #75558c;
$custom-dark: #000000;
JSON
{
  "hex": "#3b125d",
  "rgb": {
    "r": 59,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 272.8,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29384,
    "c": 0.12521,
    "h": 304.5
  },
  "luminance": 0.02153
}

Semantic roles & 50–950 ramp

primary
#3B125D
secondary
#619535
accent
#EA3D8C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B125D

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

Preview Lab → · Contrast checker → · Palette generator →

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