#2B0C4B#2B0C4B

#2B0C4B is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.108 H 301.0°. Best body text is #FFFFFF at 16.71:1 contrast (WCAG AA passes).

Color values

HEX#2B0C4B
RGBrgb(43, 12, 75)
HSLhsl(270, 72%, 17%)
HSVhsv(270, 84%, 29%)
CMYKcmyk(42.7%, 84%, 0%, 70.6%)
CIE-LABlab(11.17, 29.54, -32.42)
CIE-LCHlch(11.17, 43.86, 312.34°)
OKLaboklab(24.76% 0.0556 -0.0926)
OKLCHoklch(24.76% 0.108 301)
XYZxyz(2.3974, 1.2845, 6.7769)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0C4B #2C4B0C
analogous
#0C0C4B #2B0C4B #4B0C4B
triadic
#2B0C4B #4B2B0C #0C4B2B
tetradic
#2B0C4B #4B0C0C #2C4B0C #0C4B4B
square
#2B0C4B #4B0C0C #2C4B0C #0C4B4B
split-complementary
#2B0C4B #4B4B0C #0C4B0C
monochromatic
#0F041A #0F041A #2B0C4B #491480 #671DB5

Accessibility & contrast

On white

16.71
#2B0C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2B0C4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0C4B
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0C4B#FFFFFF#000000##FFFFFF
##2B0C4B1.0016.711.2616.71
#FFFFFF16.711.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4D
Deuteranopia (green-blind)
#001D4A
Tritanopia (blue-blind)
#241C2B
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2b0c4b;
/* rgb */ color: rgb(43, 12, 75);
/* oklch */ color: oklch(24.8% 0.108 301.0);
Tailwind
colors: {
  custom: {
    50: '#684f7e',
    500: '#2b0c4b',
    950: '#000000',
  },
}
SCSS
$custom: #2b0c4b;
$custom-light: #684f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0c4b",
  "rgb": {
    "r": 43,
    "g": 12,
    "b": 75
  },
  "hsl": {
    "h": 269.524,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.24755,
    "c": 0.10798,
    "h": 301
  },
  "luminance": 0.01285
}

Semantic roles & 50–950 ramp

primary
#2B0C4B
secondary
#5A872C
accent
#EF3995
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B0C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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