#3D167B#3D167B

#3D167B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.155 H 293.3°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#3D167B
RGBrgb(61, 22, 123)
HSLhsl(263, 70%, 28%)
HSVhsv(263, 82%, 48%)
CMYKcmyk(50.4%, 82.1%, 0%, 51.8%)
CIE-LABlab(20.03, 41.40, -49.66)
CIE-LCHlch(20.03, 64.65, 309.81°)
OKLaboklab(32.95% 0.0615 -0.1426)
OKLCHoklch(32.95% 0.155 293.3)
XYZxyz(5.7855, 2.9958, 19.0085)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D167B #547B16
analogous
#16227B #3D167B #6F167B
triadic
#3D167B #7B3D16 #167B3D
tetradic
#3D167B #7B1622 #547B16 #167B6F
square
#3D167B #7B1622 #547B16 #167B6F
split-complementary
#3D167B #7B6F16 #227B16
monochromatic
#0D051A #230D47 #3D167B #571FAF #7231DA

Accessibility & contrast

On white

13.13
#3D167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3D167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D167B
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D167B#FFFFFF#000000##FFFFFF
##3D167B1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#293349
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3d167b;
/* rgb */ color: rgb(61, 22, 123);
/* oklch */ color: oklch(32.9% 0.155 293.3);
Tailwind
colors: {
  custom: {
    50: '#7a59a2',
    500: '#3d167b',
    950: '#000000',
  },
}
SCSS
$custom: #3d167b;
$custom-light: #7a59a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d167b",
  "rgb": {
    "r": 61,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 263.168,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32948,
    "c": 0.15527,
    "h": 293.3
  },
  "luminance": 0.02996
}

Semantic roles & 50–950 ramp

primary
#3D167B
secondary
#84B03D
accent
#EC3BA8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D167B

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

Preview Lab → · Contrast checker → · Palette generator →

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