#3D189F#3D189F

#3D189F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.9% C 0.194 H 284.1°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#3D189F
RGBrgb(61, 24, 159)
HSLhsl(256, 74%, 36%)
HSVhsv(256, 85%, 62%)
CMYKcmyk(61.6%, 84.9%, 0%, 37.6%)
CIE-LABlab(24.15, 50.58, -65.31)
CIE-LCHlch(24.15, 82.60, 307.76°)
OKLaboklab(36.94% 0.0473 -0.1883)
OKLCHoklch(36.94% 0.194 284.1)
XYZxyz(8.5072, 4.1480, 33.1465)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D189F #7A9F18
analogous
#18379F #3D189F #80189F
triadic
#3D189F #9F3D18 #189F3D
tetradic
#3D189F #9F1837 #7A9F18 #189F80
square
#3D189F #9F1837 #7A9F18 #189F80
split-complementary
#3D189F #9F8018 #379F18
monochromatic
#140835 #29106A #3D189F #5120D4 #774DE4

Accessibility & contrast

On white

11.48
#3D189F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3D189F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D189F
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D189F#FFFFFF#000000##FFFFFF
##3D189F1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00359D
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d189f;
/* rgb */ color: rgb(61, 24, 159);
/* oklch */ color: oklch(36.9% 0.194 284.1);
Tailwind
colors: {
  custom: {
    50: '#805cbd',
    500: '#3d189f',
    950: '#000000',
  },
}
SCSS
$custom: #3d189f;
$custom-light: #805cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3d189f",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 159
  },
  "hsl": {
    "h": 256.444,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3694,
    "c": 0.19412,
    "h": 284.1
  },
  "luminance": 0.04149
}

Semantic roles & 50–950 ramp

primary
#3D189F
secondary
#A5C64D
accent
#F037BE
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #3D189F

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

Preview Lab → · Contrast checker → · Palette generator →

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