#3D299B#3D299B

#3D299B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.174 H 282.6°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#3D299B
RGBrgb(61, 41, 155)
HSLhsl(251, 58%, 38%)
HSVhsv(251, 74%, 61%)
CMYKcmyk(60.6%, 73.5%, 0%, 39.2%)
CIE-LABlab(26.57, 41.24, -58.88)
CIE-LCHlch(26.57, 71.88, 305.01°)
OKLaboklab(38.5% 0.0378 -0.1697)
OKLCHoklch(38.5% 0.174 282.6)
XYZxyz(8.6320, 4.9439, 31.5034)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D299B #879B29
analogous
#294E9B #3D299B #76299B
triadic
#3D299B #9B3D29 #299B3D
tetradic
#3D299B #9B294E #879B29 #299B76
square
#3D299B #9B294E #879B29 #299B76
split-complementary
#3D299B #9B7629 #4E9B29
monochromatic
#170F3A #2A1C6B #3D299B #5137CA #7B67D7

Accessibility & contrast

On white

10.56
#3D299B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#3D299B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D299B
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D299B#FFFFFF#000000##FFFFFF
##3D299B1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003B99
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3d299b;
/* rgb */ color: rgb(61, 41, 155);
/* oklch */ color: oklch(38.5% 0.174 282.6);
Tailwind
colors: {
  custom: {
    50: '#7e65ba',
    500: '#3d299b',
    950: '#000000',
  },
}
SCSS
$custom: #3d299b;
$custom-light: #7e65ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3d299b",
  "rgb": {
    "r": 61,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 250.526,
    "s": 58.163,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38504,
    "c": 0.17384,
    "h": 282.6
  },
  "luminance": 0.04945
}

Semantic roles & 50–950 ramp

primary
#3D299B
secondary
#ADBD63
accent
#E146C6
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3D299B

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

Preview Lab → · Contrast checker → · Palette generator →

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