#2D1544#2D1544

#2D1544 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.086 H 304.5°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#2D1544
RGBrgb(45, 21, 68)
HSLhsl(271, 53%, 17%)
HSVhsv(271, 69%, 27%)
CMYKcmyk(33.8%, 69.1%, 0%, 73.3%)
CIE-LABlab(12.68, 22.93, -25.07)
CIE-LCHlch(12.68, 33.98, 312.44°)
OKLaboklab(25.71% 0.0489 -0.071)
OKLCHoklch(25.71% 0.086 304.5)
XYZxyz(2.3935, 1.5116, 5.6334)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1544 #2C4415
analogous
#151544 #2D1544 #441544
triadic
#2D1544 #442D15 #15442D
tetradic
#2D1544 #441515 #2C4415 #154444
square
#2D1544 #441515 #2C4415 #154444
split-complementary
#2D1544 #444415 #154415
monochromatic
#0F0717 #0F0717 #2D1544 #4C2373 #6B32A2

Accessibility & contrast

On white

16.12
#2D1544 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1544
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1544#FFFFFF#000000##FFFFFF
##2D15441.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002045
Deuteranopia (green-blind)
#0A2143
Tritanopia (blue-blind)
#291F2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2d1544;
/* rgb */ color: rgb(45, 21, 68);
/* oklch */ color: oklch(25.7% 0.086 304.5);
Tailwind
colors: {
  custom: {
    50: '#685478',
    500: '#2d1544',
    950: '#000000',
  },
}
SCSS
$custom: #2d1544;
$custom-light: #685478;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1544",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 68
  },
  "hsl": {
    "h": 270.638,
    "s": 52.809,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25711,
    "c": 0.08615,
    "h": 304.5
  },
  "luminance": 0.01512
}

Semantic roles & 50–950 ramp

primary
#2D1544
secondary
#5A7C39
accent
#DC4C92
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2D1544

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

Preview Lab → · Contrast checker → · Palette generator →

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