#2B0B4A#2B0B4A

#2B0B4A is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.5% C 0.108 H 301.8°. Best body text is #FFFFFF at 16.81:1 contrast (WCAG AA passes).

Color values

HEX#2B0B4A
RGBrgb(43, 11, 74)
HSLhsl(270, 74%, 17%)
HSVhsv(270, 85%, 29%)
CMYKcmyk(41.9%, 85.1%, 0%, 71%)
CIE-LABlab(10.90, 29.74, -32.16)
CIE-LCHlch(10.90, 43.80, 312.76°)
OKLaboklab(24.54% 0.0569 -0.0918)
OKLCHoklch(24.54% 0.108 301.8)
XYZxyz(2.3517, 1.2473, 6.5941)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0B4A #2A4A0B
analogous
#0B0B4A #2B0B4A #4A0B4A
triadic
#2B0B4A #4A2B0B #0B4A2B
tetradic
#2B0B4A #4A0B0B #2A4A0B #0B4A4A
square
#2B0B4A #4A0B0B #2A4A0B #0B4A4A
split-complementary
#2B0B4A #4A4A0B #0B4A0B
monochromatic
#0F041B #0F041B #2B0B4A #4A137F #691BB5

Accessibility & contrast

On white

16.81
#2B0B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2B0B4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0B4A
16.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0B4A#FFFFFF#000000##FFFFFF
##2B0B4A1.0016.811.2516.81
#FFFFFF16.811.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4C
Deuteranopia (green-blind)
#001D49
Tritanopia (blue-blind)
#241C2A
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2b0b4a;
/* rgb */ color: rgb(43, 11, 74);
/* oklch */ color: oklch(24.5% 0.108 301.8);
Tailwind
colors: {
  custom: {
    50: '#684e7d',
    500: '#2b0b4a',
    950: '#000000',
  },
}
SCSS
$custom: #2b0b4a;
$custom-light: #684e7d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0b4a",
  "rgb": {
    "r": 43,
    "g": 11,
    "b": 74
  },
  "hsl": {
    "h": 270.476,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24539,
    "c": 0.10799,
    "h": 301.8
  },
  "luminance": 0.01247
}

Semantic roles & 50–950 ramp

primary
#2B0B4A
secondary
#58862B
accent
#F13792
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B0B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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