#3D2298#3D2298

#3D2298 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.177 H 284.2°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#3D2298
RGBrgb(61, 34, 152)
HSLhsl(254, 63%, 36%)
HSVhsv(254, 78%, 60%)
CMYKcmyk(59.9%, 77.6%, 0%, 40.4%)
CIE-LABlab(24.96, 44.04, -59.69)
CIE-LCHlch(24.96, 74.18, 306.42°)
OKLaboklab(37.28% 0.0437 -0.172)
OKLCHoklch(37.28% 0.177 284.2)
XYZxyz(8.1623, 4.4026, 30.1194)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2298 #7D9822
analogous
#224298 #3D2298 #782298
triadic
#3D2298 #983D22 #22983D
tetradic
#3D2298 #982242 #7D9822 #229878
square
#3D2298 #982242 #7D9822 #229878
split-complementary
#3D2298 #987822 #429822
monochromatic
#150C34 #291766 #3D2298 #512DCA #785ADA

Accessibility & contrast

On white

11.17
#3D2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3D2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2298
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2298#FFFFFF#000000##FFFFFF
##3D22981.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d2298;
/* rgb */ color: rgb(61, 34, 152);
/* oklch */ color: oklch(37.3% 0.177 284.2);
Tailwind
colors: {
  custom: {
    50: '#7e61b7',
    500: '#3d2298',
    950: '#000000',
  },
}
SCSS
$custom: #3d2298;
$custom-light: #7e61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2298",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 253.729,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37276,
    "c": 0.17747,
    "h": 284.2
  },
  "luminance": 0.04403
}

Semantic roles & 50–950 ramp

primary
#3D2298
secondary
#A7BE57
accent
#E641C1
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3D2298

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

Preview Lab → · Contrast checker → · Palette generator →

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