#2D1543#2D1543

#2D1543 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.085 H 305.2°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#2D1543
RGBrgb(45, 21, 67)
HSLhsl(271, 52%, 17%)
HSVhsv(271, 69%, 26%)
CMYKcmyk(32.8%, 68.7%, 0%, 73.7%)
CIE-LABlab(12.60, 22.64, -24.50)
CIE-LCHlch(12.60, 33.36, 312.74°)
OKLaboklab(25.63% 0.0489 -0.0693)
OKLCHoklch(25.63% 0.085 305.2)
XYZxyz(2.3633, 1.4995, 5.4740)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1543 #2B4315
analogous
#161543 #2D1543 #431542
triadic
#2D1543 #432D15 #15432D
tetradic
#2D1543 #431615 #2B4315 #154243
square
#2D1543 #431615 #2B4315 #154243
split-complementary
#2D1543 #424315 #154316
monochromatic
#100717 #100717 #2D1543 #4C2472 #6C32A0

Accessibility & contrast

On white

16.16
#2D1543 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1543
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1543#FFFFFF#000000##FFFFFF
##2D15431.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012044
Deuteranopia (green-blind)
#0B2142
Tritanopia (blue-blind)
#291E29
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2d1543;
/* rgb */ color: rgb(45, 21, 67);
/* oklch */ color: oklch(25.6% 0.085 305.2);
Tailwind
colors: {
  custom: {
    50: '#685477',
    500: '#2d1543',
    950: '#000000',
  },
}
SCSS
$custom: #2d1543;
$custom-light: #685477;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1543",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 67
  },
  "hsl": {
    "h": 271.304,
    "s": 52.273,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25631,
    "c": 0.08479,
    "h": 305.2
  },
  "luminance": 0.01499
}

Semantic roles & 50–950 ramp

primary
#2D1543
secondary
#587B39
accent
#DC4C91
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2D1543

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

Preview Lab → · Contrast checker → · Palette generator →

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