#3D1274#3D1274

#3D1274 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.151 H 296.3°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#3D1274
RGBrgb(61, 18, 116)
HSLhsl(266, 73%, 26%)
HSVhsv(266, 84%, 45%)
CMYKcmyk(47.4%, 84.5%, 0%, 54.5%)
CIE-LABlab(18.74, 41.20, -47.29)
CIE-LCHlch(18.74, 62.72, 311.06°)
OKLaboklab(31.84% 0.067 -0.1356)
OKLCHoklch(31.84% 0.151 296.3)
XYZxyz(5.2923, 2.6855, 16.7591)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1274 #497412
analogous
#121874 #3D1274 #6E1274
triadic
#3D1274 #743D12 #12743D
tetradic
#3D1274 #741218 #497412 #12746E
square
#3D1274 #741218 #497412 #12746E
split-complementary
#3D1274 #746E12 #187412
monochromatic
#0E041A #210A3F #3D1274 #591AA9 #7523DD

Accessibility & contrast

On white

13.66
#3D1274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3D1274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1274
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1274#FFFFFF#000000##FFFFFF
##3D12741.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#2E2E44
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3d1274;
/* rgb */ color: rgb(61, 18, 116);
/* oklch */ color: oklch(31.8% 0.151 296.3);
Tailwind
colors: {
  custom: {
    50: '#79569d',
    500: '#3d1274',
    950: '#000000',
  },
}
SCSS
$custom: #3d1274;
$custom-light: #79569d;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1274",
  "rgb": {
    "r": 61,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 266.327,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3184,
    "c": 0.15123,
    "h": 296.3
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#3D1274
secondary
#78AB37
accent
#F0389F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3D1274

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

Preview Lab → · Contrast checker → · Palette generator →

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