#2D1540#2D1540

#2D1540 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.4% C 0.081 H 307.3°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#2D1540
RGBrgb(45, 21, 64)
HSLhsl(273, 51%, 17%)
HSVhsv(273, 67%, 25%)
CMYKcmyk(29.7%, 67.2%, 0%, 74.9%)
CIE-LABlab(12.38, 21.78, -22.75)
CIE-LCHlch(12.38, 31.49, 313.76°)
OKLaboklab(25.4% 0.049 -0.0641)
OKLCHoklch(25.4% 0.081 307.3)
XYZxyz(2.2756, 1.4644, 5.0123)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1540 #284015
analogous
#181540 #2D1540 #40153E
triadic
#2D1540 #402D15 #15402D
tetradic
#2D1540 #401815 #284015 #153E40
square
#2D1540 #401815 #284015 #153E40
split-complementary
#2D1540 #3E4015 #154018
monochromatic
#100817 #100817 #2D1540 #4D246E #6E339C

Accessibility & contrast

On white

16.24
#2D1540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2D1540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1540
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1540#FFFFFF#000000##FFFFFF
##2D15401.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051F41
Deuteranopia (green-blind)
#0E213F
Tritanopia (blue-blind)
#2A1D28
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d1540;
/* rgb */ color: rgb(45, 21, 64);
/* oklch */ color: oklch(25.4% 0.081 307.3);
Tailwind
colors: {
  custom: {
    50: '#685375',
    500: '#2d1540',
    950: '#000000',
  },
}
SCSS
$custom: #2d1540;
$custom-light: #685375;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1540",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 64
  },
  "hsl": {
    "h": 273.488,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25395,
    "c": 0.08068,
    "h": 307.3
  },
  "luminance": 0.01464
}

Semantic roles & 50–950 ramp

primary
#2D1540
secondary
#557839
accent
#DA4E8C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D1540

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

Preview Lab → · Contrast checker → · Palette generator →

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