#3D188D#3D188D

#3D188D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.174 H 288.0°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#3D188D
RGBrgb(61, 24, 141)
HSLhsl(259, 71%, 32%)
HSVhsv(259, 83%, 55%)
CMYKcmyk(56.7%, 83%, 0%, 44.7%)
CIE-LABlab(22.19, 45.55, -57.45)
CIE-LCHlch(22.19, 73.32, 308.41°)
OKLaboklab(35.01% 0.0539 -0.1654)
OKLCHoklch(35.01% 0.174 288)
XYZxyz(7.0574, 3.5681, 25.5110)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D188D #688D18
analogous
#182E8D #3D188D #77188D
triadic
#3D188D #8D3D18 #188D3D
tetradic
#3D188D #8D182E #688D18 #188D77
square
#3D188D #8D182E #688D18 #188D77
split-complementary
#3D188D #8D7718 #2E8D18
monochromatic
#100624 #260F59 #3D188D #5421C1 #7341DF

Accessibility & contrast

On white

12.25
#3D188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3D188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D188D
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D188D#FFFFFF#000000##FFFFFF
##3D188D1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#1A3B53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d188d;
/* rgb */ color: rgb(61, 24, 141);
/* oklch */ color: oklch(35.0% 0.174 288.0);
Tailwind
colors: {
  custom: {
    50: '#7d5baf',
    500: '#3d188d',
    950: '#000000',
  },
}
SCSS
$custom: #3d188d;
$custom-light: #7d5baf;
$custom-dark: #000000;
JSON
{
  "hex": "#3d188d",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 258.974,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35006,
    "c": 0.17392,
    "h": 288
  },
  "luminance": 0.03568
}

Semantic roles & 50–950 ramp

primary
#3D188D
secondary
#97BF42
accent
#EE3AB5
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D188D

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

Preview Lab → · Contrast checker → · Palette generator →

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