#3D187B#3D187B

#3D187B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.153 H 293.0°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#3D187B
RGBrgb(61, 24, 123)
HSLhsl(262, 67%, 29%)
HSVhsv(262, 80%, 48%)
CMYKcmyk(50.4%, 80.5%, 0%, 51.8%)
CIE-LABlab(20.34, 40.49, -49.15)
CIE-LCHlch(20.34, 63.67, 309.48°)
OKLaboklab(33.17% 0.0599 -0.1411)
OKLCHoklch(33.17% 0.153 293)
XYZxyz(5.8253, 3.0752, 19.0217)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D187B #567B18
analogous
#18257B #3D187B #6F187B
triadic
#3D187B #7B3D18 #187B3D
tetradic
#3D187B #7B1825 #567B18 #187B6F
square
#3D187B #7B1825 #567B18 #187B6F
split-complementary
#3D187B #7B6F18 #257B18
monochromatic
#0D051A #240E48 #3D187B #5622AE #7236D8

Accessibility & contrast

On white

13.00
#3D187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D187B
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D187B#FFFFFF#000000##FFFFFF
##3D187B1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#293449
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3d187b;
/* rgb */ color: rgb(61, 24, 123);
/* oklch */ color: oklch(33.2% 0.153 293.0);
Tailwind
colors: {
  custom: {
    50: '#7a5aa2',
    500: '#3d187b',
    950: '#000000',
  },
}
SCSS
$custom: #3d187b;
$custom-light: #7a5aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d187b",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 262.424,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33167,
    "c": 0.15327,
    "h": 293
  },
  "luminance": 0.03075
}

Semantic roles & 50–950 ramp

primary
#3D187B
secondary
#86B03F
accent
#EA3EAA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D187B

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

Preview Lab → · Contrast checker → · Palette generator →

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