#2B1545#2B1545

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

Color values

HEX#2B1545
RGBrgb(43, 21, 69)
HSLhsl(268, 53%, 18%)
HSVhsv(268, 70%, 27%)
CMYKcmyk(37.7%, 69.6%, 0%, 72.9%)
CIE-LABlab(12.48, 22.67, -26.12)
CIE-LCHlch(12.48, 34.58, 310.96°)
OKLaboklab(25.53% 0.0456 -0.0741)
OKLCHoklch(25.53% 0.087 301.6)
XYZxyz(2.3384, 1.4796, 5.7915)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1545 #2F4515
analogous
#151745 #2B1545 #431545
triadic
#2B1545 #452B15 #15452B
tetradic
#2B1545 #451517 #2F4515 #154543
square
#2B1545 #451517 #2F4515 #154543
split-complementary
#2B1545 #454315 #174515
monochromatic
#0F0717 #0F0717 #2B1545 #482374 #6532A3

Accessibility & contrast

On white

16.20
#2B1545 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1545
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1545#FFFFFF#000000##FFFFFF
##2B15451.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1545;
/* rgb */ color: rgb(43, 21, 69);
/* oklch */ color: oklch(25.5% 0.087 301.6);
Tailwind
colors: {
  custom: {
    50: '#675379',
    500: '#2b1545',
    950: '#000000',
  },
}
SCSS
$custom: #2b1545;
$custom-light: #675379;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1545",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 69
  },
  "hsl": {
    "h": 267.5,
    "s": 53.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25525,
    "c": 0.08701,
    "h": 301.6
  },
  "luminance": 0.0148
}

Semantic roles & 50–950 ramp

primary
#2B1545
secondary
#5E7D39
accent
#DD4B9A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2B1545

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

Preview Lab → · Contrast checker → · Palette generator →

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