#3D1BA8#3D1BA8

#3D1BA8 is a dark, highly saturated violet. Relative luminance 0.046; OKLCH L 38.2% C 0.202 H 282.2°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#3D1BA8
RGBrgb(61, 27, 168)
HSLhsl(254, 72%, 38%)
HSVhsv(254, 84%, 66%)
CMYKcmyk(63.7%, 83.9%, 0%, 34.1%)
CIE-LABlab(25.57, 51.89, -68.43)
CIE-LCHlch(25.57, 85.88, 307.17°)
OKLaboklab(38.21% 0.0426 -0.1974)
OKLCHoklch(38.21% 0.202 282.2)
XYZxyz(9.3821, 4.6024, 37.4322)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1BA8 #86A81B
analogous
#1B3FA8 #3D1BA8 #831BA8
triadic
#3D1BA8 #A83D1B #1BA83D
tetradic
#3D1BA8 #A81B3F #86A81B #1BA883
square
#3D1BA8 #A81B3F #86A81B #1BA883
split-complementary
#3D1BA8 #A8831B #3FA81B
monochromatic
#170A3F #2A1373 #3D1BA8 #5124DC #7B59E4

Accessibility & contrast

On white

10.93
#3D1BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3D1BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1BA8
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1BA8#FFFFFF#000000##FFFFFF
##3D1BA81.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d1ba8;
/* rgb */ color: rgb(61, 27, 168);
/* oklch */ color: oklch(38.2% 0.202 282.2);
Tailwind
colors: {
  custom: {
    50: '#825ec3',
    500: '#3d1ba8',
    950: '#000000',
  },
}
SCSS
$custom: #3d1ba8;
$custom-light: #825ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1ba8",
  "rgb": {
    "r": 61,
    "g": 27,
    "b": 168
  },
  "hsl": {
    "h": 254.468,
    "s": 72.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38208,
    "c": 0.20196,
    "h": 282.2
  },
  "luminance": 0.04603
}

Semantic roles & 50–950 ramp

primary
#3D1BA8
secondary
#ADC857
accent
#EF39C3
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3D1BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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