#3D229D#3D229D

#3D229D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.183 H 283.3°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#3D229D
RGBrgb(61, 34, 157)
HSLhsl(253, 64%, 37%)
HSVhsv(253, 78%, 62%)
CMYKcmyk(61.1%, 78.3%, 0%, 38.4%)
CIE-LABlab(25.47, 45.54, -61.91)
CIE-LCHlch(25.47, 76.86, 306.34°)
OKLaboklab(37.79% 0.0423 -0.1785)
OKLCHoklch(37.79% 0.183 283.3)
XYZxyz(8.5804, 4.5699, 32.3217)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D229D #829D22
analogous
#22449D #3D229D #7B229D
triadic
#3D229D #9D3D22 #229D3D
tetradic
#3D229D #9D2244 #829D22 #229D7B
square
#3D229D #9D2244 #829D22 #229D7B
split-complementary
#3D229D #9D7B22 #449D22
monochromatic
#160C38 #29176B #3D229D #512DCF #795DDC

Accessibility & contrast

On white

10.97
#3D229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D229D
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D229D#FFFFFF#000000##FFFFFF
##3D229D1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A0
Deuteranopia (green-blind)
#00389B
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3d229d;
/* rgb */ color: rgb(61, 34, 157);
/* oklch */ color: oklch(37.8% 0.183 283.3);
Tailwind
colors: {
  custom: {
    50: '#7f61bb',
    500: '#3d229d',
    950: '#000000',
  },
}
SCSS
$custom: #3d229d;
$custom-light: #7f61bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3d229d",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 253.171,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37789,
    "c": 0.18342,
    "h": 283.3
  },
  "luminance": 0.0457
}

Semantic roles & 50–950 ramp

primary
#3D229D
secondary
#AAC15A
accent
#E740C3
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3D229D

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

Preview Lab → · Contrast checker → · Palette generator →

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