#2D1759#2D1759

#2D1759 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.112 H 293.0°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#2D1759
RGBrgb(45, 23, 89)
HSLhsl(260, 59%, 22%)
HSVhsv(260, 74%, 35%)
CMYKcmyk(49.4%, 74.2%, 0%, 65.1%)
CIE-LABlab(14.91, 28.07, -35.87)
CIE-LCHlch(14.91, 45.55, 308.05°)
OKLaboklab(27.88% 0.0437 -0.1027)
OKLCHoklch(27.88% 0.112 293)
XYZxyz(3.1913, 1.8919, 9.6463)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1759 #435917
analogous
#172259 #2D1759 #4E1759
triadic
#2D1759 #592D17 #17592D
tetradic
#2D1759 #591722 #435917 #17594E
square
#2D1759 #591722 #435917 #17594E
split-complementary
#2D1759 #594E17 #225917
monochromatic
#0C0618 #140A28 #2D1759 #46248A #5E30BA

Accessibility & contrast

On white

15.24
#2D1759 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2D1759 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1759
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1759#FFFFFF#000000##FFFFFF
##2D17591.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265B
Deuteranopia (green-blind)
#002458
Tritanopia (blue-blind)
#202736
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d1759;
/* rgb */ color: rgb(45, 23, 89);
/* oklch */ color: oklch(27.9% 0.112 293.0);
Tailwind
colors: {
  custom: {
    50: '#6b5688',
    500: '#2d1759',
    950: '#000000',
  },
}
SCSS
$custom: #2d1759;
$custom-light: #6b5688;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1759",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 89
  },
  "hsl": {
    "h": 260,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27877,
    "c": 0.1116,
    "h": 293
  },
  "luminance": 0.01892
}

Semantic roles & 50–950 ramp

primary
#2D1759
secondary
#74903C
accent
#E246AE
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2D1759

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

Preview Lab → · Contrast checker → · Palette generator →

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