#2B1643#2B1643

#2B1643 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.5% C 0.082 H 302.4°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#2B1643
RGBrgb(43, 22, 67)
HSLhsl(268, 51%, 17%)
HSVhsv(268, 67%, 26%)
CMYKcmyk(35.8%, 67.2%, 0%, 73.7%)
CIE-LABlab(12.56, 21.43, -24.58)
CIE-LCHlch(12.56, 32.61, 311.08°)
OKLaboklab(25.54% 0.0442 -0.0696)
OKLCHoklch(25.54% 0.082 302.4)
XYZxyz(2.2961, 1.4927, 5.4762)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1643 #2E4316
analogous
#161743 #2B1643 #421643
triadic
#2B1643 #432B16 #16432B
tetradic
#2B1643 #431617 #2E4316 #164342
square
#2B1643 #431617 #2E4316 #164342
split-complementary
#2B1643 #434216 #174316
monochromatic
#0F0817 #0F0817 #2B1643 #492571 #66349F

Accessibility & contrast

On white

16.17
#2B1643 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2B1643 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1643
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1643#FFFFFF#000000##FFFFFF
##2B16431.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022044
Deuteranopia (green-blind)
#0A2042
Tritanopia (blue-blind)
#261F2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2b1643;
/* rgb */ color: rgb(43, 22, 67);
/* oklch */ color: oklch(25.5% 0.082 302.4);
Tailwind
colors: {
  custom: {
    50: '#665477',
    500: '#2b1643',
    950: '#000000',
  },
}
SCSS
$custom: #2b1643;
$custom-light: #665477;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1643",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 67
  },
  "hsl": {
    "h": 268,
    "s": 50.562,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25536,
    "c": 0.08247,
    "h": 302.4
  },
  "luminance": 0.01493
}

Semantic roles & 50–950 ramp

primary
#2B1643
secondary
#5D7A3A
accent
#DA4E99
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2B1643

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

Preview Lab → · Contrast checker → · Palette generator →

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