#2B0546#2B0546

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

Color values

HEX#2B0546
RGBrgb(43, 5, 70)
HSLhsl(275, 87%, 15%)
HSVhsv(275, 93%, 27%)
CMYKcmyk(38.6%, 92.9%, 0%, 72.5%)
CIE-LABlab(9.52, 31.55, -31.62)
CIE-LCHlch(9.52, 44.67, 314.93°)
OKLaboklab(23.45% 0.0644 -0.0902)
OKLCHoklch(23.45% 0.111 305.5)
XYZxyz(2.1558, 1.0643, 5.8850)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0546 #204605
analogous
#0B0546 #2B0546 #460541
triadic
#2B0546 #462B05 #05462B
tetradic
#2B0546 #460B05 #204605 #054146
square
#2B0546 #460B05 #204605 #054146
split-complementary
#2B0546 #414605 #05460B
monochromatic
#12021D #12021D #2B0546 #4E097F #710DB8

Accessibility & contrast

On white

17.32
#2B0546 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2B0546 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0546
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0546#FFFFFF#000000##FFFFFF
##2B05461.0017.321.2117.32
#FFFFFF17.321.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b0546;
/* rgb */ color: rgb(43, 5, 70);
/* oklch */ color: oklch(23.5% 0.111 305.5);
Tailwind
colors: {
  custom: {
    50: '#684b7a',
    500: '#2b0546',
    950: '#000000',
  },
}
SCSS
$custom: #2b0546;
$custom-light: #684b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0546",
  "rgb": {
    "r": 43,
    "g": 5,
    "b": 70
  },
  "hsl": {
    "h": 275.077,
    "s": 86.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23453,
    "c": 0.11078,
    "h": 305.5
  },
  "luminance": 0.01064
}

Semantic roles & 50–950 ramp

primary
#2B0546
secondary
#4B8621
accent
#FD2B82
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #2B0546

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

Preview Lab → · Contrast checker → · Palette generator →

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