#2D1561#2D1561

#2D1561 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.4% C 0.125 H 290.6°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#2D1561
RGBrgb(45, 21, 97)
HSLhsl(259, 64%, 23%)
HSVhsv(259, 78%, 38%)
CMYKcmyk(53.6%, 78.4%, 0%, 62%)
CIE-LABlab(15.26, 31.72, -40.64)
CIE-LCHlch(15.26, 51.55, 307.97°)
OKLaboklab(28.36% 0.0439 -0.1167)
OKLCHoklch(28.36% 0.125 290.6)
XYZxyz(3.5074, 1.9571, 11.4999)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1561 #496115
analogous
#152361 #2D1561 #531561
triadic
#2D1561 #612D15 #15612D
tetradic
#2D1561 #611523 #496115 #156153
square
#2D1561 #611523 #496115 #156153
split-complementary
#2D1561 #615315 #236115
monochromatic
#0C0519 #160A2F #2D1561 #442093 #5C2BC6

Accessibility & contrast

On white

15.09
#2D1561 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2D1561 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1561
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1561#FFFFFF#000000##FFFFFF
##2D15611.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#002460
Tritanopia (blue-blind)
#1B293A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d1561;
/* rgb */ color: rgb(45, 21, 97);
/* oklch */ color: oklch(28.4% 0.125 290.6);
Tailwind
colors: {
  custom: {
    50: '#6c558f',
    500: '#2d1561',
    950: '#000000',
  },
}
SCSS
$custom: #2d1561;
$custom-light: #6c558f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1561",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 97
  },
  "hsl": {
    "h": 258.947,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28363,
    "c": 0.12468,
    "h": 290.6
  },
  "luminance": 0.01957
}

Semantic roles & 50–950 ramp

primary
#2D1561
secondary
#7A983A
accent
#E740B3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D1561

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

Preview Lab → · Contrast checker → · Palette generator →

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