#3D256C#3D256C

#3D256C is a dark, moderate violet. Relative luminance 0.034; OKLCH L 33.6% C 0.118 H 294.8°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#3D256C
RGBrgb(61, 37, 108)
HSLhsl(260, 49%, 28%)
HSVhsv(260, 66%, 42%)
CMYKcmyk(43.5%, 65.7%, 0%, 57.6%)
CIE-LABlab(21.57, 28.98, -37.50)
CIE-LCHlch(21.57, 47.39, 307.70°)
OKLaboklab(33.63% 0.0495 -0.1069)
OKLCHoklch(33.63% 0.118 294.8)
XYZxyz(5.2921, 3.3978, 14.5615)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D256C #546C25
analogous
#25306C #3D256C #60256C
triadic
#3D256C #6C3D25 #256C3D
tetradic
#3D256C #6C2530 #546C25 #256C60
square
#3D256C #6C2530 #546C25 #256C60
split-complementary
#3D256C #6C6025 #306C25
monochromatic
#0D0817 #23153E #3D256C #57359A #724AC1

Accessibility & contrast

On white

12.50
#3D256C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3D256C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D256C
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D256C#FFFFFF#000000##FFFFFF
##3D256C1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346E
Deuteranopia (green-blind)
#00336A
Tritanopia (blue-blind)
#313544
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3d256c;
/* rgb */ color: rgb(61, 37, 108);
/* oklch */ color: oklch(33.6% 0.118 294.8);
Tailwind
colors: {
  custom: {
    50: '#776197',
    500: '#3d256c',
    950: '#000000',
  },
}
SCSS
$custom: #3d256c;
$custom-light: #776197;
$custom-dark: #000000;
JSON
{
  "hex": "#3d256c",
  "rgb": {
    "r": 61,
    "g": 37,
    "b": 108
  },
  "hsl": {
    "h": 260.282,
    "s": 48.966,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33631,
    "c": 0.11781,
    "h": 294.8
  },
  "luminance": 0.03398
}

Semantic roles & 50–950 ramp

primary
#3D256C
secondary
#849F4E
accent
#D94FAA
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #3D256C

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

Preview Lab → · Contrast checker → · Palette generator →

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