#3D2197#3D2197

#3D2197 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.177 H 284.6°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#3D2197
RGBrgb(61, 33, 151)
HSLhsl(254, 64%, 36%)
HSVhsv(254, 78%, 59%)
CMYKcmyk(59.6%, 78.1%, 0%, 40.8%)
CIE-LABlab(24.68, 44.25, -59.54)
CIE-LCHlch(24.68, 74.18, 306.62°)
OKLaboklab(37.05% 0.0447 -0.1715)
OKLCHoklch(37.05% 0.177 284.6)
XYZxyz(8.0525, 4.3137, 29.6805)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2197 #7B9721
analogous
#214097 #3D2197 #782197
triadic
#3D2197 #973D21 #21973D
tetradic
#3D2197 #972140 #7B9721 #219778
square
#3D2197 #972140 #7B9721 #219778
split-complementary
#3D2197 #977821 #409721
monochromatic
#140B33 #291665 #3D2197 #512CC9 #7758DA

Accessibility & contrast

On white

11.27
#3D2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3D2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2197
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2197#FFFFFF#000000##FFFFFF
##3D21971.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#07435B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3d2197;
/* rgb */ color: rgb(61, 33, 151);
/* oklch */ color: oklch(37.1% 0.177 284.6);
Tailwind
colors: {
  custom: {
    50: '#7e60b7',
    500: '#3d2197',
    950: '#000000',
  },
}
SCSS
$custom: #3d2197;
$custom-light: #7e60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2197",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 254.237,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37051,
    "c": 0.17727,
    "h": 284.6
  },
  "luminance": 0.04314
}

Semantic roles & 50–950 ramp

primary
#3D2197
secondary
#A6BE55
accent
#E741C0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3D2197

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

Preview Lab → · Contrast checker → · Palette generator →

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