#2B0B40#2B0B40

#2B0B40 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.6% C 0.096 H 308.2°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#2B0B40
RGBrgb(43, 11, 64)
HSLhsl(276, 71%, 15%)
HSVhsv(276, 83%, 25%)
CMYKcmyk(32.8%, 82.8%, 0%, 74.9%)
CIE-LABlab(9.98, 27.01, -26.63)
CIE-LCHlch(9.98, 37.93, 315.40°)
OKLaboklab(23.6% 0.0594 -0.0756)
OKLCHoklch(23.6% 0.096 308.2)
XYZxyz(2.0412, 1.1231, 4.9588)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0B40 #20400B
analogous
#100B40 #2B0B40 #400B3B
triadic
#2B0B40 #402B0B #0B402B
tetradic
#2B0B40 #40100B #20400B #0B3B40
square
#2B0B40 #40100B #20400B #0B3B40
split-complementary
#2B0B40 #3B400B #0B4010
monochromatic
#12041A #12041A #2B0B40 #4E1474 #711DA8

Accessibility & contrast

On white

17.15
#2B0B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B0B40
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0B40#FFFFFF#000000##FFFFFF
##2B0B401.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#001C3F
Tritanopia (blue-blind)
#281724
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2b0b40;
/* rgb */ color: rgb(43, 11, 64);
/* oklch */ color: oklch(23.6% 0.096 308.2);
Tailwind
colors: {
  custom: {
    50: '#674d75',
    500: '#2b0b40',
    950: '#000000',
  },
}
SCSS
$custom: #2b0b40;
$custom-light: #674d75;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0b40",
  "rgb": {
    "r": 43,
    "g": 11,
    "b": 64
  },
  "hsl": {
    "h": 276.226,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.236,
    "c": 0.09612,
    "h": 308.2
  },
  "luminance": 0.01123
}

Semantic roles & 50–950 ramp

primary
#2B0B40
secondary
#4B7D2A
accent
#ED3A81
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2B0B40

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

Preview Lab → · Contrast checker → · Palette generator →

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