#3D155E#3D155E

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

Color values

HEX#3D155E
RGBrgb(61, 21, 94)
HSLhsl(273, 63%, 23%)
HSVhsv(273, 78%, 37%)
CMYKcmyk(35.1%, 77.7%, 0%, 63.1%)
CIE-LABlab(17.16, 34.00, -35.45)
CIE-LCHlch(17.16, 49.12, 313.81°)
OKLaboklab(30.11% 0.0706 -0.1008)
OKLCHoklch(30.11% 0.123 305)
XYZxyz(4.2126, 2.3366, 10.8166)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D155E #365E15
analogous
#19155E #3D155E #5E155A
triadic
#3D155E #5E3D15 #155E3D
tetradic
#3D155E #5E1915 #365E15 #155A5E
square
#3D155E #5E1915 #365E15 #155A5E
split-complementary
#3D155E #5A5E15 #155E19
monochromatic
#100619 #1D0A2C #3D155E #5D2090 #7E2BC2

Accessibility & contrast

On white

14.31
#3D155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3D155E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D155E
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D155E#FFFFFF#000000##FFFFFF
##3D155E1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002960
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#372738
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3d155e;
/* rgb */ color: rgb(61, 21, 94);
/* oklch */ color: oklch(30.1% 0.123 305.0);
Tailwind
colors: {
  custom: {
    50: '#76578c',
    500: '#3d155e',
    950: '#000000',
  },
}
SCSS
$custom: #3d155e;
$custom-light: #76578c;
$custom-dark: #000000;
JSON
{
  "hex": "#3d155e",
  "rgb": {
    "r": 61,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 272.877,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30107,
    "c": 0.12309,
    "h": 305
  },
  "luminance": 0.02337
}

Semantic roles & 50–950 ramp

primary
#3D155E
secondary
#639539
accent
#E7418C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3D155E

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

Preview Lab → · Contrast checker → · Palette generator →

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