#3D168E#3D168E

#3D168E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.177 H 288.0°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#3D168E
RGBrgb(61, 22, 142)
HSLhsl(260, 73%, 32%)
HSVhsv(260, 85%, 56%)
CMYKcmyk(57%, 84.5%, 0%, 44.3%)
CIE-LABlab(22.01, 46.66, -58.37)
CIE-LCHlch(22.01, 74.73, 308.64°)
OKLaboklab(34.92% 0.0547 -0.168)
OKLCHoklch(34.92% 0.177 288)
XYZxyz(7.0924, 3.5185, 25.8914)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D168E #678E16
analogous
#162B8E #3D168E #79168E
triadic
#3D168E #8E3D16 #168E3D
tetradic
#3D168E #8E162B #678E16 #168E79
square
#3D168E #8E162B #678E16 #168E79
split-complementary
#3D168E #8E7916 #2B8E16
monochromatic
#0F0624 #260E59 #3D168E #541EC3 #733DE1

Accessibility & contrast

On white

12.33
#3D168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3D168E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D168E
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D168E#FFFFFF#000000##FFFFFF
##3D168E1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#193B54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d168e;
/* rgb */ color: rgb(61, 22, 142);
/* oklch */ color: oklch(34.9% 0.177 288.0);
Tailwind
colors: {
  custom: {
    50: '#7d5ab0',
    500: '#3d168e',
    950: '#000000',
  },
}
SCSS
$custom: #3d168e;
$custom-light: #7d5ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d168e",
  "rgb": {
    "r": 61,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 259.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34915,
    "c": 0.17671,
    "h": 288
  },
  "luminance": 0.03519
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3D168E

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

Preview Lab → · Contrast checker → · Palette generator →

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