#3D187E#3D187E

#3D187E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.157 H 292.1°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#3D187E
RGBrgb(61, 24, 126)
HSLhsl(262, 68%, 29%)
HSVhsv(262, 81%, 49%)
CMYKcmyk(51.6%, 81%, 0%, 50.6%)
CIE-LABlab(20.64, 41.33, -50.56)
CIE-LCHlch(20.64, 65.31, 309.26°)
OKLaboklab(33.47% 0.059 -0.1452)
OKLCHoklch(33.47% 0.157 292.1)
XYZxyz(6.0159, 3.1515, 20.0259)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D187E #597E18
analogous
#18267E #3D187E #70187E
triadic
#3D187E #7E3D18 #187E3D
tetradic
#3D187E #7E1826 #597E18 #187E70
square
#3D187E #7E1826 #597E18 #187E70
split-complementary
#3D187E #7E7018 #267E18
monochromatic
#0C051A #240E4B #3D187E #5622B1 #7237D9

Accessibility & contrast

On white

12.88
#3D187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3D187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D187E
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D187E#FFFFFF#000000##FFFFFF
##3D187E1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d187e;
/* rgb */ color: rgb(61, 24, 126);
/* oklch */ color: oklch(33.5% 0.157 292.1);
Tailwind
colors: {
  custom: {
    50: '#7a5aa4',
    500: '#3d187e',
    950: '#000000',
  },
}
SCSS
$custom: #3d187e;
$custom-light: #7a5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#3d187e",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 261.765,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33466,
    "c": 0.15674,
    "h": 292.1
  },
  "luminance": 0.03152
}

Semantic roles & 50–950 ramp

primary
#3D187E
secondary
#89B23F
accent
#EB3DAC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D187E

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

Preview Lab → · Contrast checker → · Palette generator →

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