#3D298E#3D298E

#3D298E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.157 H 284.9°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#3D298E
RGBrgb(61, 41, 142)
HSLhsl(252, 55%, 36%)
HSVhsv(252, 71%, 56%)
CMYKcmyk(57%, 71.1%, 0%, 44.3%)
CIE-LABlab(25.35, 37.15, -52.88)
CIE-LCHlch(25.35, 64.62, 305.09°)
OKLaboklab(37.26% 0.0404 -0.1521)
OKLCHoklch(37.26% 0.157 284.9)
XYZxyz(7.5984, 4.5305, 26.0600)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D298E #7A8E29
analogous
#29478E #3D298E #6F298E
triadic
#3D298E #8E3D29 #298E3D
tetradic
#3D298E #8E2947 #7A8E29 #298E6F
square
#3D298E #8E2947 #7A8E29 #298E6F
split-complementary
#3D298E #8E6F29 #478E29
monochromatic
#140E2F #291B5F #3D298E #5137BD #7760D1

Accessibility & contrast

On white

11.02
#3D298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3D298E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D298E
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D298E#FFFFFF#000000##FFFFFF
##3D298E1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#174358
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3d298e;
/* rgb */ color: rgb(61, 41, 142);
/* oklch */ color: oklch(37.3% 0.157 284.9);
Tailwind
colors: {
  custom: {
    50: '#7c64b0',
    500: '#3d298e',
    950: '#000000',
  },
}
SCSS
$custom: #3d298e;
$custom-light: #7c64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d298e",
  "rgb": {
    "r": 61,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 251.881,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37261,
    "c": 0.15738,
    "h": 284.9
  },
  "luminance": 0.04531
}

Semantic roles & 50–950 ramp

primary
#3D298E
secondary
#A5B75C
accent
#DF49C1
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #3D298E

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

Preview Lab → · Contrast checker → · Palette generator →

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