#2D0847#2D0847

#2D0847 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.2% C 0.109 H 306.2°. Best body text is #FFFFFF at 16.97:1 contrast (WCAG AA passes).

Color values

HEX#2D0847
RGBrgb(45, 8, 71)
HSLhsl(275, 80%, 15%)
HSVhsv(275, 89%, 28%)
CMYKcmyk(36.6%, 88.7%, 0%, 72.2%)
CIE-LABlab(10.46, 30.71, -30.78)
CIE-LCHlch(10.46, 43.48, 314.94°)
OKLaboklab(24.21% 0.0641 -0.0876)
OKLCHoklch(24.21% 0.109 306.2)
XYZxyz(2.3061, 1.1865, 6.0675)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0847 #224708
analogous
#0D0847 #2D0847 #470841
triadic
#2D0847 #472D08 #08472D
tetradic
#2D0847 #470D08 #224708 #084147
square
#2D0847 #470D08 #224708 #084147
split-complementary
#2D0847 #414708 #08470D
monochromatic
#11031C #11031C #2D0847 #500E7E #7314B5

Accessibility & contrast

On white

16.97
#2D0847 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2D0847 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0847
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0847#FFFFFF#000000##FFFFFF
##2D08471.0016.971.2416.97
#FFFFFF16.971.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B49
Deuteranopia (green-blind)
#001D46
Tritanopia (blue-blind)
#281928
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2d0847;
/* rgb */ color: rgb(45, 8, 71);
/* oklch */ color: oklch(24.2% 0.109 306.2);
Tailwind
colors: {
  custom: {
    50: '#6a4d7b',
    500: '#2d0847',
    950: '#000000',
  },
}
SCSS
$custom: #2d0847;
$custom-light: #6a4d7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0847",
  "rgb": {
    "r": 45,
    "g": 8,
    "b": 71
  },
  "hsl": {
    "h": 275.238,
    "s": 79.747,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24208,
    "c": 0.10859,
    "h": 306.2
  },
  "luminance": 0.01186
}

Semantic roles & 50–950 ramp

primary
#2D0847
secondary
#4D8526
accent
#F63283
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070109
muted
#7A777B

Preview Lab

Preview with #2D0847

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

Preview Lab → · Contrast checker → · Palette generator →

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