#3D239E#3D239E

#3D239E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.184 H 283.0°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#3D239E
RGBrgb(61, 35, 158)
HSLhsl(253, 64%, 38%)
HSVhsv(253, 78%, 62%)
CMYKcmyk(61.4%, 77.8%, 0%, 38%)
CIE-LABlab(25.75, 45.34, -62.06)
CIE-LCHlch(25.75, 76.86, 306.15°)
OKLaboklab(38.01% 0.0413 -0.1789)
OKLCHoklch(38.01% 0.184 283)
XYZxyz(8.6951, 4.6622, 32.7828)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D239E #849E23
analogous
#23469E #3D239E #7A239E
triadic
#3D239E #9E3D23 #239E3D
tetradic
#3D239E #9E2346 #849E23 #239E7A
square
#3D239E #9E2346 #849E23 #239E7A
split-complementary
#3D239E #9E7A23 #469E23
monochromatic
#160D3A #2A186C #3D239E #502ED0 #7A60DC

Accessibility & contrast

On white

10.87
#3D239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3D239E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D239E
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D239E#FFFFFF#000000##FFFFFF
##3D239E1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d239e;
/* rgb */ color: rgb(61, 35, 158);
/* oklch */ color: oklch(38.0% 0.184 283.0);
Tailwind
colors: {
  custom: {
    50: '#7f62bc',
    500: '#3d239e',
    950: '#000000',
  },
}
SCSS
$custom: #3d239e;
$custom-light: #7f62bc;
$custom-dark: #000000;
JSON
{
  "hex": "#3d239e",
  "rgb": {
    "r": 61,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 252.683,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38013,
    "c": 0.18366,
    "h": 283
  },
  "luminance": 0.04663
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3D239E

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

Preview Lab → · Contrast checker → · Palette generator →

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