#3D187D#3D187D

#3D187D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.156 H 292.4°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#3D187D
RGBrgb(61, 24, 125)
HSLhsl(262, 68%, 29%)
HSVhsv(262, 81%, 49%)
CMYKcmyk(51.2%, 80.8%, 0%, 51%)
CIE-LABlab(20.54, 41.05, -50.09)
CIE-LCHlch(20.54, 64.76, 309.33°)
OKLaboklab(33.37% 0.0593 -0.1438)
OKLCHoklch(33.37% 0.156 292.4)
XYZxyz(5.9517, 3.1258, 19.6878)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D187D #587D18
analogous
#18267D #3D187D #70187D
triadic
#3D187D #7D3D18 #187D3D
tetradic
#3D187D #7D1826 #587D18 #187D70
square
#3D187D #7D1826 #587D18 #187D70
split-complementary
#3D187D #7D7018 #267D18
monochromatic
#0D051A #240E4A #3D187D #5622B0 #7237D9

Accessibility & contrast

On white

12.92
#3D187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3D187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D187D
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D187D#FFFFFF#000000##FFFFFF
##3D187D1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#28354A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3d187d;
/* rgb */ color: rgb(61, 24, 125);
/* oklch */ color: oklch(33.4% 0.156 292.4);
Tailwind
colors: {
  custom: {
    50: '#7a5aa4',
    500: '#3d187d',
    950: '#000000',
  },
}
SCSS
$custom: #3d187d;
$custom-light: #7a5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#3d187d",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 261.98,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33366,
    "c": 0.15559,
    "h": 292.4
  },
  "luminance": 0.03126
}

Semantic roles & 50–950 ramp

primary
#3D187D
secondary
#88B23F
accent
#EB3DAB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D187D

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

Preview Lab → · Contrast checker → · Palette generator →

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