#3D277C#3D277C

#3D277C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.3% C 0.136 H 289.4°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#3D277C
RGBrgb(61, 39, 124)
HSLhsl(256, 52%, 32%)
HSVhsv(256, 69%, 49%)
CMYKcmyk(50.8%, 68.5%, 0%, 51.4%)
CIE-LABlab(23.33, 32.68, -44.89)
CIE-LCHlch(23.33, 55.53, 306.05°)
OKLaboklab(35.32% 0.0454 -0.1287)
OKLCHoklch(35.32% 0.136 289.4)
XYZxyz(6.2870, 3.8981, 19.4860)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D277C #667C27
analogous
#273C7C #3D277C #68277C
triadic
#3D277C #7C3D27 #277C3D
tetradic
#3D277C #7C273C #667C27 #277C68
square
#3D277C #7C273C #667C27 #277C68
split-complementary
#3D277C #7C6827 #3C7C27
monochromatic
#0F0A1F #26184D #3D277C #5436AB #7254C9

Accessibility & contrast

On white

11.80
#3D277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3D277C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D277C
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D277C#FFFFFF#000000##FFFFFF
##3D277C1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#283C4E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3d277c;
/* rgb */ color: rgb(61, 39, 124);
/* oklch */ color: oklch(35.3% 0.136 289.4);
Tailwind
colors: {
  custom: {
    50: '#7963a3',
    500: '#3d277c',
    950: '#000000',
  },
}
SCSS
$custom: #3d277c;
$custom-light: #7963a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3d277c",
  "rgb": {
    "r": 61,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 255.529,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35317,
    "c": 0.13642,
    "h": 289.4
  },
  "luminance": 0.03898
}

Semantic roles & 50–950 ramp

primary
#3D277C
secondary
#96AE51
accent
#DC4CB6
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3D277C

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

Preview Lab → · Contrast checker → · Palette generator →

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