#3D2098#3D2098

#3D2098 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.179 H 284.5°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#3D2098
RGBrgb(61, 32, 152)
HSLhsl(255, 65%, 36%)
HSVhsv(255, 79%, 60%)
CMYKcmyk(59.9%, 78.9%, 0%, 40.4%)
CIE-LABlab(24.61, 45.04, -60.27)
CIE-LCHlch(24.61, 75.23, 306.77°)
OKLaboklab(37.03% 0.045 -0.1737)
OKLCHoklch(37.03% 0.179 284.5)
XYZxyz(8.1067, 4.2916, 30.1009)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2098 #7B9820
analogous
#203F98 #3D2098 #792098
triadic
#3D2098 #983D20 #20983D
tetradic
#3D2098 #98203F #7B9820 #209879
square
#3D2098 #98203F #7B9820 #209879
split-complementary
#3D2098 #987920 #3F9820
monochromatic
#140B33 #291565 #3D2098 #512BCB #7757DC

Accessibility & contrast

On white

11.30
#3D2098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D2098
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2098#FFFFFF#000000##FFFFFF
##3D20981.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d2098;
/* rgb */ color: rgb(61, 32, 152);
/* oklch */ color: oklch(37.0% 0.179 284.5);
Tailwind
colors: {
  custom: {
    50: '#7e60b7',
    500: '#3d2098',
    950: '#000000',
  },
}
SCSS
$custom: #3d2098;
$custom-light: #7e60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2098",
  "rgb": {
    "r": 61,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 254.5,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37034,
    "c": 0.17941,
    "h": 284.5
  },
  "luminance": 0.04292
}

Semantic roles & 50–950 ramp

primary
#3D2098
secondary
#A6BF54
accent
#E840BF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3D2098

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

Preview Lab → · Contrast checker → · Palette generator →

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