#3D145F#3D145F

#3D145F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.126 H 304.7°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#3D145F
RGBrgb(61, 20, 95)
HSLhsl(273, 65%, 23%)
HSVhsv(273, 79%, 37%)
CMYKcmyk(35.8%, 78.9%, 0%, 62.7%)
CIE-LABlab(17.08, 34.75, -36.25)
CIE-LCHlch(17.08, 50.22, 313.78°)
OKLaboklab(30.07% 0.0715 -0.1032)
OKLCHoklch(30.07% 0.126 304.7)
XYZxyz(4.2397, 2.3187, 11.0484)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D145F #365F14
analogous
#18145F #3D145F #5F145B
triadic
#3D145F #5F3D14 #145F3D
tetradic
#3D145F #5F1814 #365F14 #145B5F
square
#3D145F #5F1814 #365F14 #145B5F
split-complementary
#3D145F #5B5F14 #145F18
monochromatic
#100519 #1D092C #3D145F #5D1F92 #7E29C4

Accessibility & contrast

On white

14.35
#3D145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3D145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D145F
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D145F#FFFFFF#000000##FFFFFF
##3D145F1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#372638
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3d145f;
/* rgb */ color: rgb(61, 20, 95);
/* oklch */ color: oklch(30.1% 0.126 304.7);
Tailwind
colors: {
  custom: {
    50: '#76568d',
    500: '#3d145f',
    950: '#000000',
  },
}
SCSS
$custom: #3d145f;
$custom-light: #76568d;
$custom-dark: #000000;
JSON
{
  "hex": "#3d145f",
  "rgb": {
    "r": 61,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 272.8,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30073,
    "c": 0.12552,
    "h": 304.7
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#3D145F
secondary
#639738
accent
#E8408C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3D145F

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

Preview Lab → · Contrast checker → · Palette generator →

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