#3D167F#3D167F

#3D167F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.160 H 292.1°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#3D167F
RGBrgb(61, 22, 127)
HSLhsl(262, 70%, 29%)
HSVhsv(262, 83%, 50%)
CMYKcmyk(52%, 82.7%, 0%, 50.2%)
CIE-LABlab(20.43, 42.50, -51.54)
CIE-LCHlch(20.43, 66.81, 309.51°)
OKLaboklab(33.35% 0.0602 -0.1481)
OKLCHoklch(33.35% 0.16 292.1)
XYZxyz(6.0411, 3.0980, 20.3542)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D167F #587F16
analogous
#16237F #3D167F #72167F
triadic
#3D167F #7F3D16 #167F3D
tetradic
#3D167F #7F1623 #587F16 #167F72
square
#3D167F #7F1623 #587F16 #167F72
split-complementary
#3D167F #7F7216 #237F16
monochromatic
#0D051A #240D4B #3D167F #561FB3 #7234DC

Accessibility & contrast

On white

12.97
#3D167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3D167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D167F
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D167F#FFFFFF#000000##FFFFFF
##3D167F1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#27354B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3d167f;
/* rgb */ color: rgb(61, 22, 127);
/* oklch */ color: oklch(33.4% 0.160 292.1);
Tailwind
colors: {
  custom: {
    50: '#7b59a5',
    500: '#3d167f',
    950: '#000000',
  },
}
SCSS
$custom: #3d167f;
$custom-light: #7b59a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3d167f",
  "rgb": {
    "r": 61,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 262.286,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33352,
    "c": 0.15982,
    "h": 292.1
  },
  "luminance": 0.03098
}

Semantic roles & 50–950 ramp

primary
#3D167F
secondary
#88B43D
accent
#ED3BAB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D167F

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

Preview Lab → · Contrast checker → · Palette generator →

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