#2D0846#2D0846

#2D0846 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.107 H 306.8°. Best body text is #FFFFFF at 17.01:1 contrast (WCAG AA passes).

Color values

HEX#2D0846
RGBrgb(45, 8, 70)
HSLhsl(276, 79%, 15%)
HSVhsv(276, 89%, 27%)
CMYKcmyk(35.7%, 88.6%, 0%, 72.5%)
CIE-LABlab(10.36, 30.45, -30.23)
CIE-LCHlch(10.36, 42.91, 315.21°)
OKLaboklab(24.11% 0.0644 -0.086)
OKLCHoklch(24.11% 0.107 306.8)
XYZxyz(2.2743, 1.1738, 5.8999)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0846 #214608
analogous
#0E0846 #2D0846 #460840
triadic
#2D0846 #462D08 #08462D
tetradic
#2D0846 #460E08 #214608 #084046
square
#2D0846 #460E08 #214608 #084046
split-complementary
#2D0846 #404608 #08460E
monochromatic
#12031B #12031B #2D0846 #500E7D #7415B4

Accessibility & contrast

On white

17.01
#2D0846 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2D0846 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0846
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0846#FFFFFF#000000##FFFFFF
##2D08461.0017.011.2317.01
#FFFFFF17.011.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B48
Deuteranopia (green-blind)
#001C45
Tritanopia (blue-blind)
#291827
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2d0846;
/* rgb */ color: rgb(45, 8, 70);
/* oklch */ color: oklch(24.1% 0.107 306.8);
Tailwind
colors: {
  custom: {
    50: '#694d7a',
    500: '#2d0846',
    950: '#000000',
  },
}
SCSS
$custom: #2d0846;
$custom-light: #694d7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0846",
  "rgb": {
    "r": 45,
    "g": 8,
    "b": 70
  },
  "hsl": {
    "h": 275.806,
    "s": 79.487,
    "l": 15.294
  },
  "oklch": {
    "l": 0.24112,
    "c": 0.10749,
    "h": 306.8
  },
  "luminance": 0.01174
}

Semantic roles & 50–950 ramp

primary
#2D0846
secondary
#4C8426
accent
#F63281
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070109
muted
#7A777B

Preview Lab

Preview with #2D0846

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

Preview Lab → · Contrast checker → · Palette generator →

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