#3D298B#3D298B

#3D298B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.154 H 285.5°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#3D298B
RGBrgb(61, 41, 139)
HSLhsl(252, 54%, 35%)
HSVhsv(252, 71%, 55%)
CMYKcmyk(56.1%, 70.5%, 0%, 45.5%)
CIE-LABlab(25.08, 36.20, -51.46)
CIE-LCHlch(25.08, 62.92, 305.13°)
OKLaboklab(36.98% 0.041 -0.1479)
OKLCHoklch(36.98% 0.154 285.5)
XYZxyz(7.3762, 4.4416, 24.8897)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D298B #778B29
analogous
#29468B #3D298B #6E298B
triadic
#3D298B #8B3D29 #298B3D
tetradic
#3D298B #8B2946 #778B29 #298B6E
square
#3D298B #8B2946 #778B29 #298B6E
split-complementary
#3D298B #8B6E29 #468B29
monochromatic
#140D2C #281B5C #3D298B #5237BA #765FD0

Accessibility & contrast

On white

11.12
#3D298B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3D298B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D298B
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D298B#FFFFFF#000000##FFFFFF
##3D298B1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#1B4256
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3d298b;
/* rgb */ color: rgb(61, 41, 139);
/* oklch */ color: oklch(37.0% 0.154 285.5);
Tailwind
colors: {
  custom: {
    50: '#7b64ae',
    500: '#3d298b',
    950: '#000000',
  },
}
SCSS
$custom: #3d298b;
$custom-light: #7b64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3d298b",
  "rgb": {
    "r": 61,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 252.245,
    "s": 54.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36982,
    "c": 0.15352,
    "h": 285.5
  },
  "luminance": 0.04442
}

Semantic roles & 50–950 ramp

primary
#3D298B
secondary
#A3B55B
accent
#DE4AC0
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3D298B

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

Preview Lab → · Contrast checker → · Palette generator →

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