#3D279A#3D279A

#3D279A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.175 H 283.1°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#3D279A
RGBrgb(61, 39, 154)
HSLhsl(251, 60%, 38%)
HSVhsv(251, 75%, 60%)
CMYKcmyk(60.4%, 74.7%, 0%, 39.6%)
CIE-LABlab(26.09, 42.02, -59.07)
CIE-LCHlch(26.09, 72.49, 305.43°)
OKLaboklab(38.13% 0.0395 -0.1702)
OKLCHoklch(38.13% 0.175 283.1)
XYZxyz(8.4809, 4.7757, 31.0405)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D279A #849A27
analogous
#274B9A #3D279A #76279A
triadic
#3D279A #9A3D27 #279A3D
tetradic
#3D279A #9A274B #849A27 #279A76
square
#3D279A #9A274B #849A27 #279A76
split-complementary
#3D279A #9A7627 #4B9A27
monochromatic
#160E38 #2A1B69 #3D279A #5033CB #7A64D8

Accessibility & contrast

On white

10.74
#3D279A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3D279A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D279A
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D279A#FFFFFF#000000##FFFFFF
##3D279A1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419D
Deuteranopia (green-blind)
#003A98
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3d279a;
/* rgb */ color: rgb(61, 39, 154);
/* oklch */ color: oklch(38.1% 0.175 283.1);
Tailwind
colors: {
  custom: {
    50: '#7e64b9',
    500: '#3d279a',
    950: '#000000',
  },
}
SCSS
$custom: #3d279a;
$custom-light: #7e64b9;
$custom-dark: #000000;
JSON
{
  "hex": "#3d279a",
  "rgb": {
    "r": 61,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 251.478,
    "s": 59.585,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38129,
    "c": 0.17475,
    "h": 283.1
  },
  "luminance": 0.04776
}

Semantic roles & 50–950 ramp

primary
#3D279A
secondary
#ABBD5F
accent
#E345C5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3D279A

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

Preview Lab → · Contrast checker → · Palette generator →

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