#3D239F#3D239F

#3D239F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.185 H 282.8°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#3D239F
RGBrgb(61, 35, 159)
HSLhsl(253, 64%, 38%)
HSVhsv(253, 78%, 62%)
CMYKcmyk(61.6%, 78%, 0%, 37.6%)
CIE-LABlab(25.85, 45.64, -62.50)
CIE-LCHlch(25.85, 77.39, 306.13°)
OKLaboklab(38.12% 0.041 -0.1802)
OKLCHoklch(38.12% 0.185 282.8)
XYZxyz(8.7816, 4.6968, 33.2380)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D239F #859F23
analogous
#23479F #3D239F #7B239F
triadic
#3D239F #9F3D23 #239F3D
tetradic
#3D239F #9F2347 #859F23 #239F7B
square
#3D239F #9F2347 #859F23 #239F7B
split-complementary
#3D239F #9F7B23 #479F23
monochromatic
#170D3B #2A186D #3D239F #502ED1 #7A60DC

Accessibility & contrast

On white

10.83
#3D239F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3D239F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D239F
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D239F#FFFFFF#000000##FFFFFF
##3D239F1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00399D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3d239f;
/* rgb */ color: rgb(61, 35, 159);
/* oklch */ color: oklch(38.1% 0.185 282.8);
Tailwind
colors: {
  custom: {
    50: '#7f62bd',
    500: '#3d239f',
    950: '#000000',
  },
}
SCSS
$custom: #3d239f;
$custom-light: #7f62bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3d239f",
  "rgb": {
    "r": 61,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 252.581,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38116,
    "c": 0.18484,
    "h": 282.8
  },
  "luminance": 0.04697
}

Semantic roles & 50–950 ramp

primary
#3D239F
secondary
#ACC15D
accent
#E741C4
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3D239F

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

Preview Lab → · Contrast checker → · Palette generator →

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