#2C0546#2C0546

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

Color values

HEX#2C0546
RGBrgb(44, 5, 70)
HSLhsl(276, 87%, 15%)
HSVhsv(276, 93%, 27%)
CMYKcmyk(37.1%, 92.9%, 0%, 72.5%)
CIE-LABlab(9.69, 31.72, -31.33)
CIE-LCHlch(9.69, 44.59, 315.35°)
OKLaboklab(23.61% 0.066 -0.0893)
OKLCHoklch(23.61% 0.111 306.5)
XYZxyz(2.1982, 1.0862, 5.8870)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0546 #1F4605
analogous
#0B0546 #2C0546 #460540
triadic
#2C0546 #462C05 #05462C
tetradic
#2C0546 #460B05 #1F4605 #054046
square
#2C0546 #460B05 #1F4605 #054046
split-complementary
#2C0546 #404605 #05460B
monochromatic
#12021D #12021D #2C0546 #50097F #740DB8

Accessibility & contrast

On white

17.25
#2C0546 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0546
17.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0546#FFFFFF#000000##FFFFFF
##2C05461.0017.251.2217.25
#FFFFFF17.251.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c0546;
/* rgb */ color: rgb(44, 5, 70);
/* oklch */ color: oklch(23.6% 0.111 306.5);
Tailwind
colors: {
  custom: {
    50: '#694b7a',
    500: '#2c0546',
    950: '#000000',
  },
}
SCSS
$custom: #2c0546;
$custom-light: #694b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0546",
  "rgb": {
    "r": 44,
    "g": 5,
    "b": 70
  },
  "hsl": {
    "h": 276,
    "s": 86.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23609,
    "c": 0.11104,
    "h": 306.5
  },
  "luminance": 0.01086
}

Semantic roles & 50–950 ramp

primary
#2C0546
secondary
#498621
accent
#FD2B7F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070109
muted
#7A777B

Preview Lab

Preview with #2C0546

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

Preview Lab → · Contrast checker → · Palette generator →

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