#3D1257#3D1257

#3D1257 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.1% C 0.119 H 309.2°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#3D1257
RGBrgb(61, 18, 87)
HSLhsl(277, 66%, 21%)
HSVhsv(277, 79%, 34%)
CMYKcmyk(29.9%, 79.3%, 0%, 65.9%)
CIE-LABlab(16.07, 33.65, -32.53)
CIE-LCHlch(16.07, 46.80, 315.96°)
OKLaboklab(29.15% 0.0753 -0.0922)
OKLCHoklch(29.15% 0.119 309.2)
XYZxyz(3.8607, 2.1129, 9.2194)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1257 #2C5712
analogous
#1A1257 #3D1257 #57124E
triadic
#3D1257 #573D12 #12573D
tetradic
#3D1257 #571A12 #2C5712 #124E57
square
#3D1257 #571A12 #2C5712 #124E57
split-complementary
#3D1257 #4E5712 #12571A
monochromatic
#120519 #190824 #3D1257 #611C8A #8427BC

Accessibility & contrast

On white

14.76
#3D1257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#3D1257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1257
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1257#FFFFFF#000000##FFFFFF
##3D12571.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#022856
Tritanopia (blue-blind)
#392233
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3d1257;
/* rgb */ color: rgb(61, 18, 87);
/* oklch */ color: oklch(29.1% 0.119 309.2);
Tailwind
colors: {
  custom: {
    50: '#765587',
    500: '#3d1257',
    950: '#000000',
  },
}
SCSS
$custom: #3d1257;
$custom-light: #765587;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1257",
  "rgb": {
    "r": 61,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 277.391,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29147,
    "c": 0.11906,
    "h": 309.2
  },
  "luminance": 0.02113
}

Semantic roles & 50–950 ramp

primary
#3D1257
secondary
#579035
accent
#E93F7F
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3D1257

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

Preview Lab → · Contrast checker → · Palette generator →

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