#2B0C3A#2B0C3A

#2B0C3A is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.2% C 0.087 H 312.5°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#2B0C3A
RGBrgb(43, 12, 58)
HSLhsl(280, 66%, 14%)
HSVhsv(280, 79%, 23%)
CMYKcmyk(25.9%, 79.3%, 0%, 77.3%)
CIE-LABlab(9.66, 24.90, -22.86)
CIE-LCHlch(9.66, 33.80, 317.44°)
OKLaboklab(23.21% 0.0591 -0.0645)
OKLCHoklch(23.21% 0.087 312.5)
XYZxyz(1.8913, 1.0821, 4.1114)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0C3A #1B3A0C
analogous
#140C3A #2B0C3A #3A0C32
triadic
#2B0C3A #3A2B0C #0C3A2B
tetradic
#2B0C3A #3A140C #1B3A0C #0C323A
square
#2B0C3A #3A140C #1B3A0C #0C323A
split-complementary
#2B0C3A #323A0C #0C3A14
monochromatic
#130519 #130519 #2B0C3A #51166D #76219F

Accessibility & contrast

On white

17.26
#2B0C3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B0C3A
17.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0C3A#FFFFFF#000000##FFFFFF
##2B0C3A1.0017.261.2217.26
#FFFFFF17.261.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193B
Deuteranopia (green-blind)
#081B39
Tritanopia (blue-blind)
#291621
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2b0c3a;
/* rgb */ color: rgb(43, 12, 58);
/* oklch */ color: oklch(23.2% 0.087 312.5);
Tailwind
colors: {
  custom: {
    50: '#664e70',
    500: '#2b0c3a',
    950: '#000000',
  },
}
SCSS
$custom: #2b0c3a;
$custom-light: #664e70;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0c3a",
  "rgb": {
    "r": 43,
    "g": 12,
    "b": 58
  },
  "hsl": {
    "h": 280.435,
    "s": 65.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.23211,
    "c": 0.08748,
    "h": 312.5
  },
  "luminance": 0.01082
}

Semantic roles & 50–950 ramp

primary
#2B0C3A
secondary
#44762C
accent
#E93F76
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2B0C3A

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

Preview Lab → · Contrast checker → · Palette generator →

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