#2D1545#2D1545

#2D1545 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.088 H 303.9°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#2D1545
RGBrgb(45, 21, 69)
HSLhsl(270, 53%, 18%)
HSVhsv(270, 70%, 27%)
CMYKcmyk(34.8%, 69.6%, 0%, 72.9%)
CIE-LABlab(12.76, 23.22, -25.65)
CIE-LCHlch(12.76, 34.60, 312.15°)
OKLaboklab(25.79% 0.0488 -0.0727)
OKLCHoklch(25.79% 0.088 303.9)
XYZxyz(2.4243, 1.5239, 5.7955)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1545 #2D4515
analogous
#151545 #2D1545 #451545
triadic
#2D1545 #452D15 #15452D
tetradic
#2D1545 #451515 #2D4515 #154545
square
#2D1545 #451515 #2D4515 #154545
split-complementary
#2D1545 #454515 #154515
monochromatic
#0F0717 #0F0717 #2D1545 #4C2374 #6A32A3

Accessibility & contrast

On white

16.09
#2D1545 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1545
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1545#FFFFFF#000000##FFFFFF
##2D15451.0016.091.3016.09
#FFFFFF16.091.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002047
Deuteranopia (green-blind)
#082144
Tritanopia (blue-blind)
#291F2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2d1545;
/* rgb */ color: rgb(45, 21, 69);
/* oklch */ color: oklch(25.8% 0.088 303.9);
Tailwind
colors: {
  custom: {
    50: '#685479',
    500: '#2d1545',
    950: '#000000',
  },
}
SCSS
$custom: #2d1545;
$custom-light: #685479;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1545",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 69
  },
  "hsl": {
    "h": 270,
    "s": 53.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25793,
    "c": 0.08752,
    "h": 303.9
  },
  "luminance": 0.01524
}

Semantic roles & 50–950 ramp

primary
#2D1545
secondary
#5B7D39
accent
#DD4B94
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2D1545

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

Preview Lab → · Contrast checker → · Palette generator →

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