#3B124E#3B124E

#3B124E is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.1% C 0.108 H 312.9°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#3B124E
RGBrgb(59, 18, 78)
HSLhsl(281, 63%, 19%)
HSVhsv(281, 77%, 31%)
CMYKcmyk(24.4%, 76.9%, 0%, 69.4%)
CIE-LABlab(15.02, 30.95, -28.12)
CIE-LCHlch(15.02, 41.82, 317.74°)
OKLaboklab(28.11% 0.0737 -0.0793)
OKLCHoklch(28.11% 0.108 312.9)
XYZxyz(3.3948, 1.9126, 7.3966)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B124E #254E12
analogous
#1D124E #3B124E #4E1243
triadic
#3B124E #4E3B12 #124E3B
tetradic
#3B124E #4E1D12 #254E12 #12434E
square
#3B124E #4E1D12 #254E12 #12434E
split-complementary
#3B124E #434E12 #124E1D
monochromatic
#130619 #15071C #3B124E #611D80 #8629B1

Accessibility & contrast

On white

15.19
#3B124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#3B124E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B124E
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B124E#FFFFFF#000000##FFFFFF
##3B124E1.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002450
Deuteranopia (green-blind)
#0D274D
Tritanopia (blue-blind)
#391F2E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3b124e;
/* rgb */ color: rgb(59, 18, 78);
/* oklch */ color: oklch(28.1% 0.108 312.9);
Tailwind
colors: {
  custom: {
    50: '#745480',
    500: '#3b124e',
    950: '#000000',
  },
}
SCSS
$custom: #3b124e;
$custom-light: #745480;
$custom-dark: #000000;
JSON
{
  "hex": "#3b124e",
  "rgb": {
    "r": 59,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 281,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28107,
    "c": 0.10829,
    "h": 312.9
  },
  "luminance": 0.01912
}

Semantic roles & 50–950 ramp

primary
#3B124E
secondary
#4F8735
accent
#E64276
background
#F7F5F7
surface
#EDE8EE
border
#C8C4C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3B124E

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

Preview Lab → · Contrast checker → · Palette generator →

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