#3D2698#3D2698

#3D2698 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.173 H 283.6°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#3D2698
RGBrgb(61, 38, 152)
HSLhsl(252, 60%, 37%)
HSVhsv(252, 75%, 60%)
CMYKcmyk(59.9%, 75%, 0%, 40.4%)
CIE-LABlab(25.70, 41.95, -58.48)
CIE-LCHlch(25.70, 71.97, 305.65°)
OKLaboklab(37.8% 0.0408 -0.1685)
OKLCHoklch(37.8% 0.173 283.6)
XYZxyz(8.2833, 4.6448, 30.1597)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2698 #819826
analogous
#264898 #3D2698 #762698
triadic
#3D2698 #983D26 #26983D
tetradic
#3D2698 #982648 #819826 #269876
square
#3D2698 #982648 #819826 #269876
split-complementary
#3D2698 #987626 #489826
monochromatic
#160E36 #291A67 #3D2698 #5132C9 #7961D7

Accessibility & contrast

On white

10.89
#3D2698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3D2698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2698
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2698#FFFFFF#000000##FFFFFF
##3D26981.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003996
Tritanopia (blue-blind)
#03465D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3d2698;
/* rgb */ color: rgb(61, 38, 152);
/* oklch */ color: oklch(37.8% 0.173 283.6);
Tailwind
colors: {
  custom: {
    50: '#7e63b7',
    500: '#3d2698',
    950: '#000000',
  },
}
SCSS
$custom: #3d2698;
$custom-light: #7e63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2698",
  "rgb": {
    "r": 61,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 252.105,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37795,
    "c": 0.17336,
    "h": 283.6
  },
  "luminance": 0.04645
}

Semantic roles & 50–950 ramp

primary
#3D2698
secondary
#A9BD5D
accent
#E345C3
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3D2698

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

Preview Lab → · Contrast checker → · Palette generator →

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