#2C0548#2C0548

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

Color values

HEX#2C0548
RGBrgb(44, 5, 72)
HSLhsl(275, 87%, 15%)
HSVhsv(275, 93%, 28%)
CMYKcmyk(38.9%, 93.1%, 0%, 71.8%)
CIE-LABlab(9.89, 32.23, -32.41)
CIE-LCHlch(9.89, 45.71, 314.84°)
OKLaboklab(23.81% 0.0653 -0.0924)
OKLCHoklch(23.81% 0.113 305.2)
XYZxyz(2.2624, 1.1119, 6.2251)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0548 #214805
analogous
#0A0548 #2C0548 #480543
triadic
#2C0548 #482C05 #05482C
tetradic
#2C0548 #480A05 #214805 #054348
square
#2C0548 #480A05 #214805 #054348
split-complementary
#2C0548 #434805 #05480A
monochromatic
#11021D #11021D #2C0548 #4F0981 #720DBA

Accessibility & contrast

On white

17.18
#2C0548 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0548
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0548#FFFFFF#000000##FFFFFF
##2C05481.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4A
Deuteranopia (green-blind)
#001B47
Tritanopia (blue-blind)
#271828
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2c0548;
/* rgb */ color: rgb(44, 5, 72);
/* oklch */ color: oklch(23.8% 0.113 305.2);
Tailwind
colors: {
  custom: {
    50: '#694b7c',
    500: '#2c0548',
    950: '#000000',
  },
}
SCSS
$custom: #2c0548;
$custom-light: #694b7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0548",
  "rgb": {
    "r": 44,
    "g": 5,
    "b": 72
  },
  "hsl": {
    "h": 274.925,
    "s": 87.013,
    "l": 15.098
  },
  "oklch": {
    "l": 0.23809,
    "c": 0.11316,
    "h": 305.2
  },
  "luminance": 0.01112
}

Semantic roles & 50–950 ramp

primary
#2C0548
secondary
#4C8821
accent
#FD2B83
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070109
muted
#7A777B

Preview Lab

Preview with #2C0548

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

Preview Lab → · Contrast checker → · Palette generator →

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