#2D1361#2D1361

#2D1361 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.127 H 291.1°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#2D1361
RGBrgb(45, 19, 97)
HSLhsl(260, 67%, 23%)
HSVhsv(260, 80%, 38%)
CMYKcmyk(53.6%, 80.4%, 0%, 62%)
CIE-LABlab(14.88, 32.80, -41.26)
CIE-LCHlch(14.88, 52.71, 308.48°)
OKLaboklab(28.1% 0.0457 -0.1185)
OKLCHoklch(28.1% 0.127 291.1)
XYZxyz(3.4721, 1.8866, 11.4881)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1361 #476113
analogous
#132061 #2D1361 #541361
triadic
#2D1361 #612D13 #13612D
tetradic
#2D1361 #611320 #476113 #136154
square
#2D1361 #611320 #476113 #136154
split-complementary
#2D1361 #615413 #206113
monochromatic
#0C051A #15092E #2D1361 #451D94 #5C27C7

Accessibility & contrast

On white

15.25
#2D1361 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2D1361 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1361
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1361#FFFFFF#000000##FFFFFF
##2D13611.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002763
Deuteranopia (green-blind)
#002460
Tritanopia (blue-blind)
#1B2839
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d1361;
/* rgb */ color: rgb(45, 19, 97);
/* oklch */ color: oklch(28.1% 0.127 291.1);
Tailwind
colors: {
  custom: {
    50: '#6c548f',
    500: '#2d1361',
    950: '#000000',
  },
}
SCSS
$custom: #2d1361;
$custom-light: #6c548f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1361",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 97
  },
  "hsl": {
    "h": 260,
    "s": 67.241,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28095,
    "c": 0.12703,
    "h": 291.1
  },
  "luminance": 0.01887
}

Semantic roles & 50–950 ramp

primary
#2D1361
secondary
#789937
accent
#EA3EB1
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D1361

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

Preview Lab → · Contrast checker → · Palette generator →

#2D1361 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva