#2B1440#2B1440

#2B1440 is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.9% C 0.082 H 305.3°. Best body text is #FFFFFF at 16.45:1 contrast (WCAG AA passes).

Color values

HEX#2B1440
RGBrgb(43, 20, 64)
HSLhsl(271, 52%, 16%)
HSVhsv(271, 69%, 25%)
CMYKcmyk(32.8%, 68.8%, 0%, 74.9%)
CIE-LABlab(11.85, 21.83, -23.61)
CIE-LCHlch(11.85, 32.16, 312.76°)
OKLaboklab(24.95% 0.0473 -0.0667)
OKLCHoklch(24.95% 0.082 305.3)
XYZxyz(2.1716, 1.3841, 5.0022)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1440 #294014
analogous
#151440 #2B1440 #40143F
triadic
#2B1440 #402B14 #14402B
tetradic
#2B1440 #401514 #294014 #143F40
square
#2B1440 #401514 #294014 #143F40
split-complementary
#2B1440 #3F4014 #144015
monochromatic
#100717 #100717 #2B1440 #4A236F #6A319D

Accessibility & contrast

On white

16.45
#2B1440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2B1440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1440
16.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1440#FFFFFF#000000##FFFFFF
##2B14401.0016.451.2816.45
#FFFFFF16.451.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021F41
Deuteranopia (green-blind)
#0B1F3F
Tritanopia (blue-blind)
#271D27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2b1440;
/* rgb */ color: rgb(43, 20, 64);
/* oklch */ color: oklch(24.9% 0.082 305.3);
Tailwind
colors: {
  custom: {
    50: '#665375',
    500: '#2b1440',
    950: '#000000',
  },
}
SCSS
$custom: #2b1440;
$custom-light: #665375;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1440",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 64
  },
  "hsl": {
    "h": 271.364,
    "s": 52.381,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24946,
    "c": 0.0818,
    "h": 305.3
  },
  "luminance": 0.01384
}

Semantic roles & 50–950 ramp

primary
#2B1440
secondary
#567838
accent
#DC4C91
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2B1440

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

Preview Lab → · Contrast checker → · Palette generator →

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