#3D186E#3D186E

#3D186E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.138 H 297.5°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#3D186E
RGBrgb(61, 24, 110)
HSLhsl(266, 64%, 26%)
HSVhsv(266, 78%, 43%)
CMYKcmyk(44.5%, 78.2%, 0%, 56.9%)
CIE-LABlab(19.10, 36.85, -42.81)
CIE-LCHlch(19.10, 56.48, 310.72°)
OKLaboklab(31.92% 0.0637 -0.1225)
OKLCHoklch(31.92% 0.138 297.5)
XYZxyz(5.0648, 2.7711, 15.0168)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D186E #496E18
analogous
#181E6E #3D186E #68186E
triadic
#3D186E #6E3D18 #186E3D
tetradic
#3D186E #6E181E #496E18 #186E68
square
#3D186E #6E181E #496E18 #186E68
split-complementary
#3D186E #6E6818 #1E6E18
monochromatic
#0E0519 #210D3C #3D186E #5923A0 #752FD2

Accessibility & contrast

On white

13.51
#3D186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3D186E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D186E
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D186E#FFFFFF#000000##FFFFFF
##3D186E1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#002D6C
Tritanopia (blue-blind)
#302E42
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3d186e;
/* rgb */ color: rgb(61, 24, 110);
/* oklch */ color: oklch(31.9% 0.138 297.5);
Tailwind
colors: {
  custom: {
    50: '#785998',
    500: '#3d186e',
    950: '#000000',
  },
}
SCSS
$custom: #3d186e;
$custom-light: #785998;
$custom-dark: #000000;
JSON
{
  "hex": "#3d186e",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 265.814,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31918,
    "c": 0.13806,
    "h": 297.5
  },
  "luminance": 0.02771
}

Semantic roles & 50–950 ramp

primary
#3D186E
secondary
#78A43E
accent
#E741A0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D186E

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

Preview Lab → · Contrast checker → · Palette generator →

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