#3D155B#3D155B

#3D155B is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.8% C 0.120 H 306.5°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#3D155B
RGBrgb(61, 21, 91)
HSLhsl(274, 63%, 22%)
HSVhsv(274, 77%, 36%)
CMYKcmyk(33%, 76.9%, 0%, 64.3%)
CIE-LABlab(16.91, 33.22, -33.86)
CIE-LCHlch(16.91, 47.43, 314.46°)
OKLaboklab(29.85% 0.0712 -0.0961)
OKLCHoklch(29.85% 0.12 306.5)
XYZxyz(4.0806, 2.2838, 10.1214)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D155B #335B15
analogous
#1A155B #3D155B #5B1556
triadic
#3D155B #5B3D15 #155B3D
tetradic
#3D155B #5B1A15 #335B15 #15565B
square
#3D155B #5B1A15 #335B15 #15565B
split-complementary
#3D155B #565B15 #155B1A
monochromatic
#110619 #1C0A29 #3D155B #5E208D #802CBE

Accessibility & contrast

On white

14.42
#3D155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D155B
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D155B#FFFFFF#000000##FFFFFF
##3D155B1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#002A5A
Tritanopia (blue-blind)
#382536
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3d155b;
/* rgb */ color: rgb(61, 21, 91);
/* oklch */ color: oklch(29.8% 0.120 306.5);
Tailwind
colors: {
  custom: {
    50: '#76568a',
    500: '#3d155b',
    950: '#000000',
  },
}
SCSS
$custom: #3d155b;
$custom-light: #76568a;
$custom-dark: #000000;
JSON
{
  "hex": "#3d155b",
  "rgb": {
    "r": 61,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 274.286,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29849,
    "c": 0.11963,
    "h": 306.5
  },
  "luminance": 0.02284
}

Semantic roles & 50–950 ramp

primary
#3D155B
secondary
#609239
accent
#E64288
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3D155B

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

Preview Lab → · Contrast checker → · Palette generator →

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