#3D239B#3D239B

#3D239B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.180 H 283.5°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#3D239B
RGBrgb(61, 35, 155)
HSLhsl(253, 63%, 37%)
HSVhsv(253, 77%, 61%)
CMYKcmyk(60.6%, 77.4%, 0%, 39.2%)
CIE-LABlab(25.44, 44.44, -60.74)
CIE-LCHlch(25.44, 75.26, 306.19°)
OKLaboklab(37.71% 0.0422 -0.1751)
OKLCHoklch(37.71% 0.18 283.5)
XYZxyz(8.4401, 4.5602, 31.4394)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D239B #819B23
analogous
#23459B #3D239B #79239B
triadic
#3D239B #9B3D23 #239B3D
tetradic
#3D239B #9B2345 #819B23 #239B79
square
#3D239B #9B2345 #819B23 #239B79
split-complementary
#3D239B #9B7923 #459B23
monochromatic
#160C37 #291869 #3D239B #512ECD #795EDB

Accessibility & contrast

On white

10.98
#3D239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3D239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D239B
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D239B#FFFFFF#000000##FFFFFF
##3D239B1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409E
Deuteranopia (green-blind)
#003899
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3d239b;
/* rgb */ color: rgb(61, 35, 155);
/* oklch */ color: oklch(37.7% 0.180 283.5);
Tailwind
colors: {
  custom: {
    50: '#7e62ba',
    500: '#3d239b',
    950: '#000000',
  },
}
SCSS
$custom: #3d239b;
$custom-light: #7e62ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3d239b",
  "rgb": {
    "r": 61,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 253,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37706,
    "c": 0.18007,
    "h": 283.5
  },
  "luminance": 0.04561
}

Semantic roles & 50–950 ramp

primary
#3D239B
secondary
#A9BF5A
accent
#E642C3
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3D239B

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

Preview Lab → · Contrast checker → · Palette generator →

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