#3D227D#3D227D

#3D227D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.144 H 290.4°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#3D227D
RGBrgb(61, 34, 125)
HSLhsl(258, 57%, 31%)
HSVhsv(258, 73%, 49%)
CMYKcmyk(51.2%, 72.8%, 0%, 51%)
CIE-LABlab(22.36, 35.89, -47.11)
CIE-LCHlch(22.36, 59.23, 307.30°)
OKLaboklab(34.65% 0.0504 -0.1352)
OKLCHoklch(34.65% 0.144 290.4)
XYZxyz(6.1971, 3.6166, 19.7696)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D227D #627D22
analogous
#22347D #3D227D #6A227D
triadic
#3D227D #7D3D22 #227D3D
tetradic
#3D227D #7D2234 #627D22 #227D6A
square
#3D227D #7D2234 #627D22 #227D6A
split-complementary
#3D227D #7D6A22 #347D22
monochromatic
#0E081D #26154D #3D227D #542FAD #724BCE

Accessibility & contrast

On white

12.19
#3D227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3D227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D227D
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D227D#FFFFFF#000000##FFFFFF
##3D227D1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#27394D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d227d;
/* rgb */ color: rgb(61, 34, 125);
/* oklch */ color: oklch(34.6% 0.144 290.4);
Tailwind
colors: {
  custom: {
    50: '#795fa3',
    500: '#3d227d',
    950: '#000000',
  },
}
SCSS
$custom: #3d227d;
$custom-light: #795fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#3d227d",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 257.802,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34649,
    "c": 0.14423,
    "h": 290.4
  },
  "luminance": 0.03617
}

Semantic roles & 50–950 ramp

primary
#3D227D
secondary
#92B04B
accent
#E047B3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3D227D

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

Preview Lab → · Contrast checker → · Palette generator →

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