#2D0546#2D0546

#2D0546 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.8% C 0.111 H 307.5°. Best body text is #FFFFFF at 17.19:1 contrast (WCAG AA passes).

Color values

HEX#2D0546
RGBrgb(45, 5, 70)
HSLhsl(277, 87%, 15%)
HSVhsv(277, 93%, 27%)
CMYKcmyk(35.7%, 92.9%, 0%, 72.5%)
CIE-LABlab(9.87, 31.90, -31.04)
CIE-LCHlch(9.87, 44.51, 315.78°)
OKLaboklab(23.77% 0.0677 -0.0884)
OKLCHoklch(23.77% 0.111 307.5)
XYZxyz(2.2417, 1.1087, 5.8891)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0546 #1E4605
analogous
#0C0546 #2D0546 #46053F
triadic
#2D0546 #462D05 #05462D
tetradic
#2D0546 #460C05 #1E4605 #053F46
square
#2D0546 #460C05 #1E4605 #053F46
split-complementary
#2D0546 #3F4605 #05460C
monochromatic
#12021D #12021D #2D0546 #52097F #760DB8

Accessibility & contrast

On white

17.19
#2D0546 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2D0546 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0546
17.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0546#FFFFFF#000000##FFFFFF
##2D05461.0017.191.2217.19
#FFFFFF17.191.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A48
Deuteranopia (green-blind)
#001B45
Tritanopia (blue-blind)
#291726
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2d0546;
/* rgb */ color: rgb(45, 5, 70);
/* oklch */ color: oklch(23.8% 0.111 307.5);
Tailwind
colors: {
  custom: {
    50: '#6a4b7a',
    500: '#2d0546',
    950: '#000000',
  },
}
SCSS
$custom: #2d0546;
$custom-light: #6a4b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0546",
  "rgb": {
    "r": 45,
    "g": 5,
    "b": 70
  },
  "hsl": {
    "h": 276.923,
    "s": 86.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23766,
    "c": 0.11132,
    "h": 307.5
  },
  "luminance": 0.01109
}

Semantic roles & 50–950 ramp

primary
#2D0546
secondary
#488621
accent
#FD2B7C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070109
muted
#7A777B

Preview Lab

Preview with #2D0546

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

Preview Lab → · Contrast checker → · Palette generator →

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