#3D1262#3D1262

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

Color values

HEX#3D1262
RGBrgb(61, 18, 98)
HSLhsl(272, 69%, 23%)
HSVhsv(272, 82%, 38%)
CMYKcmyk(37.8%, 81.6%, 0%, 61.6%)
CIE-LABlab(17.02, 36.45, -38.34)
CIE-LCHlch(17.02, 52.90, 313.55°)
OKLaboklab(30.12% 0.0727 -0.1093)
OKLCHoklch(30.12% 0.131 303.6)
XYZxyz(4.3449, 2.3066, 11.7692)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1262 #376212
analogous
#151262 #3D1262 #62125F
triadic
#3D1262 #623D12 #12623D
tetradic
#3D1262 #621512 #376212 #125F62
square
#3D1262 #621512 #376212 #125F62
split-complementary
#3D1262 #5F6212 #126215
monochromatic
#10051A #1D092E #3D1262 #5D1B96 #7D25C9

Accessibility & contrast

On white

14.37
#3D1262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1262
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1262#FFFFFF#000000##FFFFFF
##3D12621.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002A60
Tritanopia (blue-blind)
#362739
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3d1262;
/* rgb */ color: rgb(61, 18, 98);
/* oklch */ color: oklch(30.1% 0.131 303.6);
Tailwind
colors: {
  custom: {
    50: '#77558f',
    500: '#3d1262',
    950: '#000000',
  },
}
SCSS
$custom: #3d1262;
$custom-light: #77558f;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1262",
  "rgb": {
    "r": 61,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 272.25,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30115,
    "c": 0.13129,
    "h": 303.6
  },
  "luminance": 0.02307
}

Semantic roles & 50–950 ramp

primary
#3D1262
secondary
#649A36
accent
#EC3C8D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3D1262

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

Preview Lab → · Contrast checker → · Palette generator →

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