#3D2277#3D2277

#3D2277 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.1% C 0.137 H 292.2°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#3D2277
RGBrgb(61, 34, 119)
HSLhsl(259, 56%, 30%)
HSVhsv(259, 71%, 47%)
CMYKcmyk(48.7%, 71.4%, 0%, 53.3%)
CIE-LABlab(21.83, 34.08, -44.16)
CIE-LCHlch(21.83, 55.78, 307.66°)
OKLaboklab(34.1% 0.0515 -0.1265)
OKLCHoklch(34.1% 0.137 292.2)
XYZxyz(5.8253, 3.4679, 17.8116)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2277 #5C7722
analogous
#223177 #3D2277 #682277
triadic
#3D2277 #773D22 #22773D
tetradic
#3D2277 #772231 #5C7722 #227768
square
#3D2277 #772231 #5C7722 #227768
split-complementary
#3D2277 #776822 #317722
monochromatic
#0C0718 #251447 #3D2277 #5530A7 #7249CB

Accessibility & contrast

On white

12.40
#3D2277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3D2277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2277
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2277#FFFFFF#000000##FFFFFF
##3D22771.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357A
Deuteranopia (green-blind)
#003375
Tritanopia (blue-blind)
#2B3749
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3d2277;
/* rgb */ color: rgb(61, 34, 119);
/* oklch */ color: oklch(34.1% 0.137 292.2);
Tailwind
colors: {
  custom: {
    50: '#785f9f',
    500: '#3d2277',
    950: '#000000',
  },
}
SCSS
$custom: #3d2277;
$custom-light: #785f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2277",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 259.059,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.34103,
    "c": 0.13658,
    "h": 292.2
  },
  "luminance": 0.03468
}

Semantic roles & 50–950 ramp

primary
#3D2277
secondary
#8CAA4B
accent
#DF49AF
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3D2277

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

Preview Lab → · Contrast checker → · Palette generator →

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