#3D165E#3D165E

#3D165E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.122 H 304.8°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#3D165E
RGBrgb(61, 22, 94)
HSLhsl(273, 62%, 23%)
HSVhsv(273, 77%, 37%)
CMYKcmyk(35.1%, 76.6%, 0%, 63.1%)
CIE-LABlab(17.34, 33.50, -35.16)
CIE-LCHlch(17.34, 48.57, 313.61°)
OKLaboklab(30.23% 0.0695 -0.1)
OKLCHoklch(30.23% 0.122 304.8)
XYZxyz(4.2313, 2.3741, 10.8228)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D165E #375E16
analogous
#19165E #3D165E #5E165B
triadic
#3D165E #5E3D16 #165E3D
tetradic
#3D165E #5E1916 #375E16 #165B5E
square
#3D165E #5E1916 #375E16 #165B5E
split-complementary
#3D165E #5B5E16 #165E19
monochromatic
#100619 #1D0A2C #3D165E #5D2290 #7D2DC1

Accessibility & contrast

On white

14.24
#3D165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3D165E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D165E
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D165E#FFFFFF#000000##FFFFFF
##3D165E1.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#372738
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3d165e;
/* rgb */ color: rgb(61, 22, 94);
/* oklch */ color: oklch(30.2% 0.122 304.8);
Tailwind
colors: {
  custom: {
    50: '#76578c',
    500: '#3d165e',
    950: '#000000',
  },
}
SCSS
$custom: #3d165e;
$custom-light: #76578c;
$custom-dark: #000000;
JSON
{
  "hex": "#3d165e",
  "rgb": {
    "r": 61,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 272.5,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30232,
    "c": 0.12177,
    "h": 304.8
  },
  "luminance": 0.02374
}

Semantic roles & 50–950 ramp

primary
#3D165E
secondary
#64953B
accent
#E5438D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3D165E

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

Preview Lab → · Contrast checker → · Palette generator →

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