#2D1642#2D1642

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

Color values

HEX#2D1642
RGBrgb(45, 22, 66)
HSLhsl(271, 50%, 17%)
HSVhsv(271, 67%, 26%)
CMYKcmyk(31.8%, 66.7%, 0%, 74.1%)
CIE-LABlab(12.77, 21.71, -23.53)
CIE-LCHlch(12.77, 32.02, 312.70°)
OKLaboklab(25.73% 0.0474 -0.0664)
OKLCHoklch(25.73% 0.082 305.5)
XYZxyz(2.3523, 1.5251, 5.3236)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1642 #2B4216
analogous
#171642 #2D1642 #421641
triadic
#2D1642 #422D16 #16422D
tetradic
#2D1642 #421716 #2B4216 #164142
square
#2D1642 #421716 #2B4216 #164142
split-complementary
#2D1642 #414216 #164217
monochromatic
#100817 #100817 #2D1642 #4C2570 #6C359E

Accessibility & contrast

On white

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

On black

1.31
#2D1642 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2D1642#FFFFFF#000000##FFFFFF
##2D16421.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042043
Deuteranopia (green-blind)
#0D2141
Tritanopia (blue-blind)
#291F29
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2d1642;
/* rgb */ color: rgb(45, 22, 66);
/* oklch */ color: oklch(25.7% 0.082 305.5);
Tailwind
colors: {
  custom: {
    50: '#685477',
    500: '#2d1642',
    950: '#000000',
  },
}
SCSS
$custom: #2d1642;
$custom-light: #685477;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1642",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 66
  },
  "hsl": {
    "h": 271.364,
    "s": 50,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25725,
    "c": 0.08163,
    "h": 305.5
  },
  "luminance": 0.01525
}

Semantic roles & 50–950 ramp

primary
#2D1642
secondary
#58793A
accent
#DA4E91
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2D1642

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

Preview Lab → · Contrast checker → · Palette generator →

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