#3D187C#3D187C

#3D187C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.154 H 292.7°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#3D187C
RGBrgb(61, 24, 124)
HSLhsl(262, 68%, 29%)
HSVhsv(262, 81%, 49%)
CMYKcmyk(50.8%, 80.6%, 0%, 51.4%)
CIE-LABlab(20.44, 40.77, -49.62)
CIE-LCHlch(20.44, 64.22, 309.41°)
OKLaboklab(33.27% 0.0596 -0.1424)
OKLCHoklch(33.27% 0.154 292.7)
XYZxyz(5.8882, 3.1004, 19.3531)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D187C #577C18
analogous
#18257C #3D187C #6F187C
triadic
#3D187C #7C3D18 #187C3D
tetradic
#3D187C #7C1825 #577C18 #187C6F
square
#3D187C #7C1825 #577C18 #187C6F
split-complementary
#3D187C #7C6F18 #257C18
monochromatic
#0D051A #240E49 #3D187C #5622AF #7236D8

Accessibility & contrast

On white

12.96
#3D187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3D187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D187C
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D187C#FFFFFF#000000##FFFFFF
##3D187C1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#29344A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3d187c;
/* rgb */ color: rgb(61, 24, 124);
/* oklch */ color: oklch(33.3% 0.154 292.7);
Tailwind
colors: {
  custom: {
    50: '#7a5aa3',
    500: '#3d187c',
    950: '#000000',
  },
}
SCSS
$custom: #3d187c;
$custom-light: #7a5aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#3d187c",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 262.2,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33266,
    "c": 0.15443,
    "h": 292.7
  },
  "luminance": 0.03101
}

Semantic roles & 50–950 ramp

primary
#3D187C
secondary
#87B13F
accent
#EA3DAA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D187C

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

Preview Lab → · Contrast checker → · Palette generator →

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