#3D1258#3D1258

#3D1258 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.120 H 308.7°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#3D1258
RGBrgb(61, 18, 88)
HSLhsl(277, 66%, 21%)
HSVhsv(277, 80%, 35%)
CMYKcmyk(30.7%, 79.5%, 0%, 65.5%)
CIE-LABlab(16.15, 33.90, -33.07)
CIE-LCHlch(16.15, 47.36, 315.71°)
OKLaboklab(29.23% 0.0751 -0.0938)
OKLCHoklch(29.23% 0.12 308.7)
XYZxyz(3.9019, 2.1294, 9.4361)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1258 #2D5812
analogous
#1A1258 #3D1258 #581250
triadic
#3D1258 #583D12 #12583D
tetradic
#3D1258 #581A12 #2D5812 #125058
square
#3D1258 #581A12 #2D5812 #125058
split-complementary
#3D1258 #505812 #12581A
monochromatic
#120519 #1A0825 #3D1258 #601C8B #8327BE

Accessibility & contrast

On white

14.73
#3D1258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#3D1258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1258
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1258#FFFFFF#000000##FFFFFF
##3D12581.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002957
Tritanopia (blue-blind)
#392234
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3d1258;
/* rgb */ color: rgb(61, 18, 88);
/* oklch */ color: oklch(29.2% 0.120 308.7);
Tailwind
colors: {
  custom: {
    50: '#765588',
    500: '#3d1258',
    950: '#000000',
  },
}
SCSS
$custom: #3d1258;
$custom-light: #765588;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1258",
  "rgb": {
    "r": 61,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 276.857,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29232,
    "c": 0.12018,
    "h": 308.7
  },
  "luminance": 0.02129
}

Semantic roles & 50–950 ramp

primary
#3D1258
secondary
#589135
accent
#E93F80
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3D1258

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

Preview Lab → · Contrast checker → · Palette generator →

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