#3D227A#3D227A

#3D227A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.140 H 291.3°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#3D227A
RGBrgb(61, 34, 122)
HSLhsl(258, 56%, 31%)
HSVhsv(258, 72%, 48%)
CMYKcmyk(50%, 72.1%, 0%, 52.2%)
CIE-LABlab(22.09, 34.99, -45.64)
CIE-LCHlch(22.09, 57.51, 307.47°)
OKLaboklab(34.37% 0.051 -0.1309)
OKLCHoklch(34.37% 0.14 291.3)
XYZxyz(6.0084, 3.5411, 18.7755)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D227A #5F7A22
analogous
#22337A #3D227A #69227A
triadic
#3D227A #7A3D22 #227A3D
tetradic
#3D227A #7A2233 #5F7A22 #227A69
square
#3D227A #7A2233 #5F7A22 #227A69
split-complementary
#3D227A #7A6922 #337A22
monochromatic
#0D071A #25154A #3D227A #552FAA #724ACD

Accessibility & contrast

On white

12.29
#3D227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3D227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D227A
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D227A#FFFFFF#000000##FFFFFF
##3D227A1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#29384B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d227a;
/* rgb */ color: rgb(61, 34, 122);
/* oklch */ color: oklch(34.4% 0.140 291.3);
Tailwind
colors: {
  custom: {
    50: '#795fa1',
    500: '#3d227a',
    950: '#000000',
  },
}
SCSS
$custom: #3d227a;
$custom-light: #795fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d227a",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 258.409,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34374,
    "c": 0.14043,
    "h": 291.3
  },
  "luminance": 0.03541
}

Semantic roles & 50–950 ramp

primary
#3D227A
secondary
#8FAD4B
accent
#E048B1
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3D227A

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

Preview Lab → · Contrast checker → · Palette generator →

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