#3D187F#3D187F

#3D187F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.158 H 291.8°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#3D187F
RGBrgb(61, 24, 127)
HSLhsl(262, 68%, 30%)
HSVhsv(262, 81%, 50%)
CMYKcmyk(52%, 81.1%, 0%, 50.2%)
CIE-LABlab(20.74, 41.61, -51.04)
CIE-LCHlch(20.74, 65.85, 309.19°)
OKLaboklab(33.57% 0.0587 -0.1466)
OKLCHoklch(33.57% 0.158 291.8)
XYZxyz(6.0808, 3.1774, 20.3675)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D187F #5A7F18
analogous
#18277F #3D187F #70187F
triadic
#3D187F #7F3D18 #187F3D
tetradic
#3D187F #7F1827 #5A7F18 #187F70
square
#3D187F #7F1827 #5A7F18 #187F70
split-complementary
#3D187F #7F7018 #277F18
monochromatic
#0C051A #240E4C #3D187F #5622B2 #7238D9

Accessibility & contrast

On white

12.84
#3D187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3D187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D187F
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D187F#FFFFFF#000000##FFFFFF
##3D187F1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#27354B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d187f;
/* rgb */ color: rgb(61, 24, 127);
/* oklch */ color: oklch(33.6% 0.158 291.8);
Tailwind
colors: {
  custom: {
    50: '#7a5aa5',
    500: '#3d187f',
    950: '#000000',
  },
}
SCSS
$custom: #3d187f;
$custom-light: #7a5aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#3d187f",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 261.553,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33566,
    "c": 0.1579,
    "h": 291.8
  },
  "luminance": 0.03178
}

Semantic roles & 50–950 ramp

primary
#3D187F
secondary
#8AB33F
accent
#EB3DAC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D187F

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

Preview Lab → · Contrast checker → · Palette generator →

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