#3D166A#3D166A

#3D166A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.136 H 299.4°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#3D166A
RGBrgb(61, 22, 106)
HSLhsl(268, 66%, 25%)
HSVhsv(268, 79%, 42%)
CMYKcmyk(42.5%, 79.2%, 0%, 58.4%)
CIE-LABlab(18.39, 36.72, -41.36)
CIE-LCHlch(18.39, 55.31, 311.60°)
OKLaboklab(31.31% 0.0667 -0.1182)
OKLCHoklch(31.31% 0.136 299.4)
XYZxyz(4.8122, 2.6065, 13.8824)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D166A #436A16
analogous
#16196A #3D166A #67166A
triadic
#3D166A #6A3D16 #166A3D
tetradic
#3D166A #6A1619 #436A16 #166A67
square
#3D166A #6A1619 #436A16 #166A67
split-complementary
#3D166A #6A6716 #196A16
monochromatic
#0F0519 #200B37 #3D166A #5A219D #772BCF

Accessibility & contrast

On white

13.80
#3D166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3D166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D166A
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D166A#FFFFFF#000000##FFFFFF
##3D166A1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#002C68
Tritanopia (blue-blind)
#322C3F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3d166a;
/* rgb */ color: rgb(61, 22, 106);
/* oklch */ color: oklch(31.3% 0.136 299.4);
Tailwind
colors: {
  custom: {
    50: '#785895',
    500: '#3d166a',
    950: '#000000',
  },
}
SCSS
$custom: #3d166a;
$custom-light: #785895;
$custom-dark: #000000;
JSON
{
  "hex": "#3d166a",
  "rgb": {
    "r": 61,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 267.857,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31305,
    "c": 0.13573,
    "h": 299.4
  },
  "luminance": 0.02607
}

Semantic roles & 50–950 ramp

primary
#3D166A
secondary
#72A03B
accent
#E93F9A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3D166A

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

Preview Lab → · Contrast checker → · Palette generator →

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