#3D229A#3D229A

#3D229A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.180 H 283.9°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#3D229A
RGBrgb(61, 34, 154)
HSLhsl(254, 64%, 37%)
HSVhsv(254, 78%, 60%)
CMYKcmyk(60.4%, 77.9%, 0%, 39.6%)
CIE-LABlab(25.16, 44.64, -60.58)
CIE-LCHlch(25.16, 75.25, 306.38°)
OKLaboklab(37.48% 0.0431 -0.1746)
OKLCHoklch(37.48% 0.18 283.9)
XYZxyz(8.3274, 4.4687, 30.9893)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D229A #7F9A22
analogous
#22439A #3D229A #79229A
triadic
#3D229A #9A3D22 #229A3D
tetradic
#3D229A #9A2243 #7F9A22 #229A79
square
#3D229A #9A2243 #7F9A22 #229A79
split-complementary
#3D229A #9A7922 #439A22
monochromatic
#150C36 #291768 #3D229A #512DCC #785BDB

Accessibility & contrast

On white

11.09
#3D229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D229A
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D229A#FFFFFF#000000##FFFFFF
##3D229A1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9D
Deuteranopia (green-blind)
#003898
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3d229a;
/* rgb */ color: rgb(61, 34, 154);
/* oklch */ color: oklch(37.5% 0.180 283.9);
Tailwind
colors: {
  custom: {
    50: '#7e61b9',
    500: '#3d229a',
    950: '#000000',
  },
}
SCSS
$custom: #3d229a;
$custom-light: #7e61b9;
$custom-dark: #000000;
JSON
{
  "hex": "#3d229a",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 253.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3748,
    "c": 0.17986,
    "h": 283.9
  },
  "luminance": 0.04469
}

Semantic roles & 50–950 ramp

primary
#3D229A
secondary
#A8BF58
accent
#E741C2
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3D229A

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

Preview Lab → · Contrast checker → · Palette generator →

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