#3D155A#3D155A

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

Color values

HEX#3D155A
RGBrgb(61, 21, 90)
HSLhsl(275, 62%, 22%)
HSVhsv(275, 77%, 35%)
CMYKcmyk(32.2%, 76.7%, 0%, 64.7%)
CIE-LABlab(16.83, 32.96, -33.32)
CIE-LCHlch(16.83, 46.87, 314.69°)
OKLaboklab(29.76% 0.0714 -0.0946)
OKLCHoklch(29.76% 0.118 307)
XYZxyz(4.0377, 2.2667, 9.8957)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D155A #325A15
analogous
#1B155A #3D155A #5A1555
triadic
#3D155A #5A3D15 #155A3D
tetradic
#3D155A #5A1B15 #325A15 #15555A
square
#3D155A #5A1B15 #325A15 #15555A
split-complementary
#3D155A #555A15 #155A1B
monochromatic
#110619 #1B0928 #3D155A #5F218C #802CBD

Accessibility & contrast

On white

14.45
#3D155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3D155A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D155A
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D155A#FFFFFF#000000##FFFFFF
##3D155A1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285C
Deuteranopia (green-blind)
#012A59
Tritanopia (blue-blind)
#382536
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3d155a;
/* rgb */ color: rgb(61, 21, 90);
/* oklch */ color: oklch(29.8% 0.118 307.0);
Tailwind
colors: {
  custom: {
    50: '#765689',
    500: '#3d155a',
    950: '#000000',
  },
}
SCSS
$custom: #3d155a;
$custom-light: #765689;
$custom-dark: #000000;
JSON
{
  "hex": "#3d155a",
  "rgb": {
    "r": 61,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 274.783,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29764,
    "c": 0.11846,
    "h": 307
  },
  "luminance": 0.02267
}

Semantic roles & 50–950 ramp

primary
#3D155A
secondary
#5E9239
accent
#E54387
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3D155A

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

Preview Lab → · Contrast checker → · Palette generator →

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