#3D299E#3D299E

#3D299E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.178 H 282.1°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#3D299E
RGBrgb(61, 41, 158)
HSLhsl(250, 59%, 39%)
HSVhsv(250, 74%, 62%)
CMYKcmyk(61.4%, 74.1%, 0%, 38%)
CIE-LABlab(26.87, 42.17, -60.23)
CIE-LCHlch(26.87, 73.53, 305.00°)
OKLaboklab(38.8% 0.0371 -0.1736)
OKLCHoklch(38.8% 0.178 282.1)
XYZxyz(8.8870, 5.0460, 32.8468)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D299E #8A9E29
analogous
#29509E #3D299E #78299E
triadic
#3D299E #9E3D29 #299E3D
tetradic
#3D299E #9E2950 #8A9E29 #299E78
square
#3D299E #9E2950 #8A9E29 #299E78
split-complementary
#3D299E #9E7829 #509E29
monochromatic
#17103D #2A1C6D #3D299E #5239CC #7C69D8

Accessibility & contrast

On white

10.45
#3D299E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#3D299E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D299E
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D299E#FFFFFF#000000##FFFFFF
##3D299E1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#004961
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3d299e;
/* rgb */ color: rgb(61, 41, 158);
/* oklch */ color: oklch(38.8% 0.178 282.1);
Tailwind
colors: {
  custom: {
    50: '#7f65bc',
    500: '#3d299e',
    950: '#000000',
  },
}
SCSS
$custom: #3d299e;
$custom-light: #7f65bc;
$custom-dark: #000000;
JSON
{
  "hex": "#3d299e",
  "rgb": {
    "r": 61,
    "g": 41,
    "b": 158
  },
  "hsl": {
    "h": 250.256,
    "s": 58.794,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38799,
    "c": 0.17755,
    "h": 282.1
  },
  "luminance": 0.05047
}

Semantic roles & 50–950 ramp

primary
#3D299E
secondary
#AFBF64
accent
#E246C7
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3D299E

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

Preview Lab → · Contrast checker → · Palette generator →

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