#3D236D#3D236D

#3D236D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.4% C 0.122 H 295.1°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#3D236D
RGBrgb(61, 35, 109)
HSLhsl(261, 51%, 28%)
HSVhsv(261, 68%, 43%)
CMYKcmyk(44%, 67.9%, 0%, 57.3%)
CIE-LABlab(21.20, 30.49, -38.75)
CIE-LCHlch(21.20, 49.31, 308.20°)
OKLaboklab(33.39% 0.0518 -0.1106)
OKLCHoklch(33.39% 0.122 295.1)
XYZxyz(5.2851, 3.2982, 14.8232)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D236D #536D23
analogous
#232E6D #3D236D #62236D
triadic
#3D236D #6D3D23 #236D3D
tetradic
#3D236D #6D232E #536D23 #236D62
square
#3D236D #6D232E #536D23 #236D62
split-complementary
#3D236D #6D6223 #2E6D23
monochromatic
#0D0717 #23143F #3D236D #57329B #7347C4

Accessibility & contrast

On white

12.65
#3D236D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3D236D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D236D
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D236D#FFFFFF#000000##FFFFFF
##3D236D1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#00326B
Tritanopia (blue-blind)
#303444
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3d236d;
/* rgb */ color: rgb(61, 35, 109);
/* oklch */ color: oklch(33.4% 0.122 295.1);
Tailwind
colors: {
  custom: {
    50: '#775f97',
    500: '#3d236d',
    950: '#000000',
  },
}
SCSS
$custom: #3d236d;
$custom-light: #775f97;
$custom-dark: #000000;
JSON
{
  "hex": "#3d236d",
  "rgb": {
    "r": 61,
    "g": 35,
    "b": 109
  },
  "hsl": {
    "h": 261.081,
    "s": 51.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33388,
    "c": 0.12213,
    "h": 295.1
  },
  "luminance": 0.03298
}

Semantic roles & 50–950 ramp

primary
#3D236D
secondary
#83A04B
accent
#DB4DA9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #3D236D

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

Preview Lab → · Contrast checker → · Palette generator →

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