#3D2198#3D2198

#3D2198 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.178 H 284.4°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#3D2198
RGBrgb(61, 33, 152)
HSLhsl(254, 64%, 36%)
HSVhsv(254, 78%, 60%)
CMYKcmyk(59.9%, 78.3%, 0%, 40.4%)
CIE-LABlab(24.78, 44.54, -59.98)
CIE-LCHlch(24.78, 74.71, 306.60°)
OKLaboklab(37.15% 0.0444 -0.1728)
OKLCHoklch(37.15% 0.178 284.4)
XYZxyz(8.1341, 4.3463, 30.1100)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2198 #7C9821
analogous
#214198 #3D2198 #792198
triadic
#3D2198 #983D21 #21983D
tetradic
#3D2198 #982141 #7C9821 #219879
square
#3D2198 #982141 #7C9821 #219879
split-complementary
#3D2198 #987921 #419821
monochromatic
#150B33 #291666 #3D2198 #512CCA #7759DB

Accessibility & contrast

On white

11.23
#3D2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3D2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2198
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2198#FFFFFF#000000##FFFFFF
##3D21981.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#04435C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3d2198;
/* rgb */ color: rgb(61, 33, 152);
/* oklch */ color: oklch(37.2% 0.178 284.4);
Tailwind
colors: {
  custom: {
    50: '#7e60b7',
    500: '#3d2198',
    950: '#000000',
  },
}
SCSS
$custom: #3d2198;
$custom-light: #7e60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2198",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 254.118,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37153,
    "c": 0.17845,
    "h": 284.4
  },
  "luminance": 0.04347
}

Semantic roles & 50–950 ramp

primary
#3D2198
secondary
#A6BF56
accent
#E740C0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3D2198

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

Preview Lab → · Contrast checker → · Palette generator →

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