#3D3271#3D3271

#3D3271 is a dark, moderate violet. Relative luminance 0.045; OKLCH L 36.4% C 0.105 H 288.1°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#3D3271
RGBrgb(61, 50, 113)
HSLhsl(250, 39%, 32%)
HSVhsv(250, 56%, 44%)
CMYKcmyk(46%, 55.8%, 0%, 55.7%)
CIE-LABlab(25.15, 22.20, -34.94)
CIE-LCHlch(25.15, 41.40, 302.42°)
OKLaboklab(36.38% 0.0325 -0.0994)
OKLCHoklch(36.38% 0.105 288.1)
XYZxyz(6.0449, 4.4653, 16.1630)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D3271 #667132
analogous
#324771 #3D3271 #5D3271
triadic
#3D3271 #713D32 #32713D
tetradic
#3D3271 #713247 #667132 #32715D
square
#3D3271 #713247 #667132 #32715D
split-complementary
#3D3271 #715D32 #477132
monochromatic
#0F0C1C #261F47 #3D3271 #54459B #7263BA

Accessibility & contrast

On white

11.09
#3D3271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3D3271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D3271
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D3271#FFFFFF#000000##FFFFFF
##3D32711.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143D73
Deuteranopia (green-blind)
#143A70
Tritanopia (blue-blind)
#2D3F4C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3d3271;
/* rgb */ color: rgb(61, 50, 113);
/* oklch */ color: oklch(36.4% 0.105 288.1);
Tailwind
colors: {
  custom: {
    50: '#766a9a',
    500: '#3d3271',
    950: '#000000',
  },
}
SCSS
$custom: #3d3271;
$custom-light: #766a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#3d3271",
  "rgb": {
    "r": 61,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 250.476,
    "s": 38.65,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36384,
    "c": 0.10455,
    "h": 288.1
  },
  "luminance": 0.04466
}

Semantic roles & 50–950 ramp

primary
#3D3271
secondary
#96A25D
accent
#CF59BA
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09060E
muted
#7B7A7E

Preview Lab

Preview with #3D3271

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

Preview Lab → · Contrast checker → · Palette generator →

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