#3D147B#3D147B

#3D147B is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.157 H 293.6°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#3D147B
RGBrgb(61, 20, 123)
HSLhsl(264, 72%, 28%)
HSVhsv(264, 84%, 48%)
CMYKcmyk(50.4%, 83.7%, 0%, 51.8%)
CIE-LABlab(19.73, 42.26, -50.15)
CIE-LCHlch(19.73, 65.58, 310.12°)
OKLaboklab(32.74% 0.063 -0.144)
OKLCHoklch(32.74% 0.157 293.6)
XYZxyz(5.7488, 2.9223, 18.9962)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D147B #527B14
analogous
#141F7B #3D147B #70147B
triadic
#3D147B #7B3D14 #147B3D
tetradic
#3D147B #7B141F #527B14 #147B70
square
#3D147B #7B141F #527B14 #147B70
split-complementary
#3D147B #7B7014 #1F7B14
monochromatic
#0D041A #230B46 #3D147B #571DB0 #732DDD

Accessibility & contrast

On white

13.25
#3D147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3D147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D147B
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D147B#FFFFFF#000000##FFFFFF
##3D147B1.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#293248
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3d147b;
/* rgb */ color: rgb(61, 20, 123);
/* oklch */ color: oklch(32.7% 0.157 293.6);
Tailwind
colors: {
  custom: {
    50: '#7a58a2',
    500: '#3d147b',
    950: '#000000',
  },
}
SCSS
$custom: #3d147b;
$custom-light: #7a58a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d147b",
  "rgb": {
    "r": 61,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 263.883,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32742,
    "c": 0.15716,
    "h": 293.6
  },
  "luminance": 0.02922
}

Semantic roles & 50–950 ramp

primary
#3D147B
secondary
#81B13A
accent
#EF39A6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D147B

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

Preview Lab → · Contrast checker → · Palette generator →

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