#2B0540#2B0540

#2B0540 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.104 H 309.5°. Best body text is #FFFFFF at 17.52:1 contrast (WCAG AA passes).

Color values

HEX#2B0540
RGBrgb(43, 5, 64)
HSLhsl(279, 86%, 14%)
HSVhsv(279, 92%, 25%)
CMYKcmyk(32.8%, 92.2%, 0%, 74.9%)
CIE-LABlab(8.93, 30.04, -28.34)
CIE-LCHlch(8.93, 41.29, 316.66°)
OKLaboklab(22.86% 0.0664 -0.0805)
OKLCHoklch(22.86% 0.104 309.5)
XYZxyz(1.9758, 0.9923, 4.9370)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0540 #1A4005
analogous
#0D0540 #2B0540 #400537
triadic
#2B0540 #402B05 #05402B
tetradic
#2B0540 #400D05 #1A4005 #053740
square
#2B0540 #400D05 #1A4005 #053740
split-complementary
#2B0540 #374005 #05400D
monochromatic
#13021C #13021C #2B0540 #510979 #770EB2

Accessibility & contrast

On white

17.52
#2B0540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B0540
17.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0540#FFFFFF#000000##FFFFFF
##2B05401.0017.521.2017.52
#FFFFFF17.521.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#001A3F
Tritanopia (blue-blind)
#281423
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2b0540;
/* rgb */ color: rgb(43, 5, 64);
/* oklch */ color: oklch(22.9% 0.104 309.5);
Tailwind
colors: {
  custom: {
    50: '#684a75',
    500: '#2b0540',
    950: '#000000',
  },
}
SCSS
$custom: #2b0540;
$custom-light: #684a75;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0540",
  "rgb": {
    "r": 43,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 278.644,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.22862,
    "c": 0.10439,
    "h": 309.5
  },
  "luminance": 0.00992
}

Semantic roles & 50–950 ramp

primary
#2B0540
secondary
#438120
accent
#FC2C76
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2B0540

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

Preview Lab → · Contrast checker → · Palette generator →

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