#2B1544#2B1544

#2B1544 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.4% C 0.086 H 302.2°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#2B1544
RGBrgb(43, 21, 68)
HSLhsl(268, 53%, 17%)
HSVhsv(268, 69%, 27%)
CMYKcmyk(36.8%, 69.1%, 0%, 73.3%)
CIE-LABlab(12.40, 22.37, -25.54)
CIE-LCHlch(12.40, 33.96, 311.21°)
OKLaboklab(25.44% 0.0457 -0.0724)
OKLCHoklch(25.44% 0.086 302.2)
XYZxyz(2.3076, 1.4673, 5.6294)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1544 #2E4415
analogous
#151744 #2B1544 #421544
triadic
#2B1544 #442B15 #15442B
tetradic
#2B1544 #441517 #2E4415 #154442
square
#2B1544 #441517 #2E4415 #154442
split-complementary
#2B1544 #444215 #174415
monochromatic
#0F0717 #0F0717 #2B1544 #492373 #6632A2

Accessibility & contrast

On white

16.24
#2B1544 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2B1544 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1544
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1544#FFFFFF#000000##FFFFFF
##2B15441.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002045
Deuteranopia (green-blind)
#072043
Tritanopia (blue-blind)
#261F2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b1544;
/* rgb */ color: rgb(43, 21, 68);
/* oklch */ color: oklch(25.4% 0.086 302.2);
Tailwind
colors: {
  custom: {
    50: '#675378',
    500: '#2b1544',
    950: '#000000',
  },
}
SCSS
$custom: #2b1544;
$custom-light: #675378;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1544",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 68
  },
  "hsl": {
    "h": 268.085,
    "s": 52.809,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25443,
    "c": 0.08561,
    "h": 302.2
  },
  "luminance": 0.01467
}

Semantic roles & 50–950 ramp

primary
#2B1544
secondary
#5D7C39
accent
#DC4C99
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2B1544

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

Preview Lab → · Contrast checker → · Palette generator →

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