#2D1541#2D1541

#2D1541 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.5% C 0.082 H 306.6°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#2D1541
RGBrgb(45, 21, 65)
HSLhsl(273, 51%, 17%)
HSVhsv(273, 68%, 25%)
CMYKcmyk(30.8%, 67.7%, 0%, 74.5%)
CIE-LABlab(12.45, 22.07, -23.33)
CIE-LCHlch(12.45, 32.11, 313.40°)
OKLaboklab(25.47% 0.0489 -0.0659)
OKLCHoklch(25.47% 0.082 306.6)
XYZxyz(2.3043, 1.4759, 5.1635)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1541 #294115
analogous
#171541 #2D1541 #41153F
triadic
#2D1541 #412D15 #15412D
tetradic
#2D1541 #411715 #294115 #153F41
square
#2D1541 #411715 #294115 #153F41
split-complementary
#2D1541 #3F4115 #154117
monochromatic
#100717 #100717 #2D1541 #4D246F #6D339E

Accessibility & contrast

On white

16.21
#2D1541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2D1541 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1541
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1541#FFFFFF#000000##FFFFFF
##2D15411.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032042
Deuteranopia (green-blind)
#0D2140
Tritanopia (blue-blind)
#2A1E28
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d1541;
/* rgb */ color: rgb(45, 21, 65);
/* oklch */ color: oklch(25.5% 0.082 306.6);
Tailwind
colors: {
  custom: {
    50: '#685476',
    500: '#2d1541',
    950: '#000000',
  },
}
SCSS
$custom: #2d1541;
$custom-light: #685476;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1541",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 65
  },
  "hsl": {
    "h": 272.727,
    "s": 51.163,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25473,
    "c": 0.08205,
    "h": 306.6
  },
  "luminance": 0.01476
}

Semantic roles & 50–950 ramp

primary
#2D1541
secondary
#567939
accent
#DB4D8D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D1541

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

Preview Lab → · Contrast checker → · Palette generator →

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