#3D168F#3D168F

#3D168F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 35.0% C 0.178 H 287.8°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#3D168F
RGBrgb(61, 22, 143)
HSLhsl(259, 73%, 32%)
HSVhsv(259, 85%, 56%)
CMYKcmyk(57.3%, 84.6%, 0%, 43.9%)
CIE-LABlab(22.12, 46.94, -58.81)
CIE-LCHlch(22.12, 75.25, 308.59°)
OKLaboklab(35.02% 0.0544 -0.1693)
OKLCHoklch(35.02% 0.178 287.8)
XYZxyz(7.1678, 3.5487, 26.2885)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D168F #688F16
analogous
#162B8F #3D168F #7A168F
triadic
#3D168F #8F3D16 #168F3D
tetradic
#3D168F #8F162B #688F16 #168F7A
square
#3D168F #8F162B #688F16 #168F7A
split-complementary
#3D168F #8F7A16 #2B8F16
monochromatic
#100625 #260E5A #3D168F #541EC4 #733EE1

Accessibility & contrast

On white

12.28
#3D168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D168F
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D168F#FFFFFF#000000##FFFFFF
##3D168F1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#183B54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d168f;
/* rgb */ color: rgb(61, 22, 143);
/* oklch */ color: oklch(35.0% 0.178 287.8);
Tailwind
colors: {
  custom: {
    50: '#7d5ab1',
    500: '#3d168f',
    950: '#000000',
  },
}
SCSS
$custom: #3d168f;
$custom-light: #7d5ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d168f",
  "rgb": {
    "r": 61,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 259.339,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35022,
    "c": 0.17782,
    "h": 287.8
  },
  "luminance": 0.03549
}

Semantic roles & 50–950 ramp

primary
#3D168F
secondary
#97C13F
accent
#F038B5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D168F

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

Preview Lab → · Contrast checker → · Palette generator →

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