#2B0542#2B0542

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

Color values

HEX#2B0542
RGBrgb(43, 5, 66)
HSLhsl(277, 86%, 14%)
HSVhsv(277, 92%, 26%)
CMYKcmyk(34.8%, 92.4%, 0%, 74.1%)
CIE-LABlab(9.12, 30.53, -29.45)
CIE-LCHlch(9.12, 42.42, 316.04°)
OKLaboklab(23.06% 0.0658 -0.0838)
OKLCHoklch(23.06% 0.107 308.1)
XYZxyz(2.0337, 1.0155, 5.2421)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0542 #1C4205
analogous
#0D0542 #2B0542 #42053B
triadic
#2B0542 #422B05 #05422B
tetradic
#2B0542 #420D05 #1C4205 #053B42
square
#2B0542 #420D05 #1C4205 #053B42
split-complementary
#2B0542 #3B4205 #05420D
monochromatic
#13021C #13021C #2B0542 #50097B #750EB4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B0542#FFFFFF#000000##FFFFFF
##2B05421.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)
#001844
Deuteranopia (green-blind)
#001A41
Tritanopia (blue-blind)
#271524
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2b0542;
/* rgb */ color: rgb(43, 5, 66);
/* oklch */ color: oklch(23.1% 0.107 308.1);
Tailwind
colors: {
  custom: {
    50: '#684a77',
    500: '#2b0542',
    950: '#000000',
  },
}
SCSS
$custom: #2b0542;
$custom-light: #684a77;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0542",
  "rgb": {
    "r": 43,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 277.377,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.23056,
    "c": 0.10652,
    "h": 308.1
  },
  "luminance": 0.01015
}

Semantic roles & 50–950 ramp

primary
#2B0542
secondary
#458220
accent
#FC2C7A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #2B0542

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

Preview Lab → · Contrast checker → · Palette generator →

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