#3D239C#3D239C

#3D239C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.181 H 283.4°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#3D239C
RGBrgb(61, 35, 156)
HSLhsl(253, 63%, 37%)
HSVhsv(253, 78%, 61%)
CMYKcmyk(60.9%, 77.6%, 0%, 38.8%)
CIE-LABlab(25.55, 44.74, -61.18)
CIE-LCHlch(25.55, 75.79, 306.17°)
OKLaboklab(37.81% 0.0419 -0.1764)
OKLCHoklch(37.81% 0.181 283.4)
XYZxyz(8.5244, 4.5939, 31.8836)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D239C #829C23
analogous
#23459C #3D239C #7A239C
triadic
#3D239C #9C3D23 #239C3D
tetradic
#3D239C #9C2345 #829C23 #239C7A
square
#3D239C #9C2345 #829C23 #239C7A
split-complementary
#3D239C #9C7A23 #459C23
monochromatic
#160D38 #29186A #3D239C #512ECE #795EDB

Accessibility & contrast

On white

10.94
#3D239C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3D239C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D239C
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D239C#FFFFFF#000000##FFFFFF
##3D239C1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3d239c;
/* rgb */ color: rgb(61, 35, 156);
/* oklch */ color: oklch(37.8% 0.181 283.4);
Tailwind
colors: {
  custom: {
    50: '#7f62ba',
    500: '#3d239c',
    950: '#000000',
  },
}
SCSS
$custom: #3d239c;
$custom-light: #7f62ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3d239c",
  "rgb": {
    "r": 61,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 252.893,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37808,
    "c": 0.18127,
    "h": 283.4
  },
  "luminance": 0.04594
}

Semantic roles & 50–950 ramp

primary
#3D239C
secondary
#AAC05B
accent
#E641C3
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3D239C

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

Preview Lab → · Contrast checker → · Palette generator →

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