#2C0540#2C0540

#2C0540 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.0% C 0.105 H 310.5°. Best body text is #FFFFFF at 17.46:1 contrast (WCAG AA passes).

Color values

HEX#2C0540
RGBrgb(44, 5, 64)
HSLhsl(280, 86%, 14%)
HSVhsv(280, 92%, 25%)
CMYKcmyk(31.2%, 92.2%, 0%, 74.9%)
CIE-LABlab(9.11, 30.23, -28.04)
CIE-LCHlch(9.11, 41.23, 317.15°)
OKLaboklab(23.03% 0.0681 -0.0796)
OKLCHoklch(23.03% 0.105 310.5)
XYZxyz(2.0182, 1.0142, 4.9389)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0540 #194005
analogous
#0E0540 #2C0540 #400536
triadic
#2C0540 #402C05 #05402C
tetradic
#2C0540 #400E05 #194005 #053640
square
#2C0540 #400E05 #194005 #053640
split-complementary
#2C0540 #364005 #05400E
monochromatic
#14021C #14021C #2C0540 #530979 #7A0EB2

Accessibility & contrast

On white

17.46
#2C0540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#2C0540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0540
17.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0540#FFFFFF#000000##FFFFFF
##2C05401.0017.461.2017.46
#FFFFFF17.461.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#001A3F
Tritanopia (blue-blind)
#291423
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2c0540;
/* rgb */ color: rgb(44, 5, 64);
/* oklch */ color: oklch(23.0% 0.105 310.5);
Tailwind
colors: {
  custom: {
    50: '#684a75',
    500: '#2c0540',
    950: '#000000',
  },
}
SCSS
$custom: #2c0540;
$custom-light: #684a75;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0540",
  "rgb": {
    "r": 44,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 279.661,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.23026,
    "c": 0.10472,
    "h": 310.5
  },
  "luminance": 0.01014
}

Semantic roles & 50–950 ramp

primary
#2C0540
secondary
#418120
accent
#FC2C72
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2C0540

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

Preview Lab → · Contrast checker → · Palette generator →

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