#3D236B#3D236B

#3D236B is a dark, moderate violet. Relative luminance 0.033; OKLCH L 33.2% C 0.119 H 295.8°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#3D236B
RGBrgb(61, 35, 107)
HSLhsl(262, 51%, 28%)
HSVhsv(262, 67%, 42%)
CMYKcmyk(43%, 67.3%, 0%, 58%)
CIE-LABlab(21.04, 29.90, -37.71)
CIE-LCHlch(21.04, 48.12, 308.41°)
OKLaboklab(33.22% 0.052 -0.1075)
OKLCHoklch(33.22% 0.119 295.8)
XYZxyz(5.1786, 3.2556, 14.2626)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D236B #516B23
analogous
#232D6B #3D236B #61236B
triadic
#3D236B #6B3D23 #236B3D
tetradic
#3D236B #6B232D #516B23 #236B61
square
#3D236B #6B232D #516B23 #236B61
split-complementary
#3D236B #6B6123 #2D6B23
monochromatic
#0D0817 #23143D #3D236B #573299 #7346C2

Accessibility & contrast

On white

12.72
#3D236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3D236B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D236B
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D236B#FFFFFF#000000##FFFFFF
##3D236B1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#003269
Tritanopia (blue-blind)
#313343
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3d236b;
/* rgb */ color: rgb(61, 35, 107);
/* oklch */ color: oklch(33.2% 0.119 295.8);
Tailwind
colors: {
  custom: {
    50: '#775f96',
    500: '#3d236b',
    950: '#000000',
  },
}
SCSS
$custom: #3d236b;
$custom-light: #775f96;
$custom-dark: #000000;
JSON
{
  "hex": "#3d236b",
  "rgb": {
    "r": 61,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 261.667,
    "s": 50.704,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33221,
    "c": 0.11947,
    "h": 295.8
  },
  "luminance": 0.03256
}

Semantic roles & 50–950 ramp

primary
#3D236B
secondary
#809E4B
accent
#DA4EA7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #3D236B

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

Preview Lab → · Contrast checker → · Palette generator →

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