#2B1549#2B1549

#2B1549 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.093 H 299.3°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#2B1549
RGBrgb(43, 21, 73)
HSLhsl(265, 55%, 18%)
HSVhsv(265, 71%, 29%)
CMYKcmyk(41.1%, 71.2%, 0%, 71.4%)
CIE-LABlab(12.80, 23.88, -28.37)
CIE-LCHlch(12.80, 37.09, 310.09°)
OKLaboklab(25.87% 0.0453 -0.0807)
OKLCHoklch(25.87% 0.093 299.3)
XYZxyz(2.4667, 1.5309, 6.4676)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1549 #334915
analogous
#151949 #2B1549 #451549
triadic
#2B1549 #492B15 #15492B
tetradic
#2B1549 #491519 #334915 #154945
square
#2B1549 #491519 #334915 #154945
split-complementary
#2B1549 #494515 #194915
monochromatic
#0E0718 #0F0719 #2B1549 #472379 #6330A8

Accessibility & contrast

On white

16.08
#2B1549 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2B1549 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1549
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1549#FFFFFF#000000##FFFFFF
##2B15491.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214B
Deuteranopia (green-blind)
#002148
Tritanopia (blue-blind)
#24212C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2b1549;
/* rgb */ color: rgb(43, 21, 73);
/* oklch */ color: oklch(25.9% 0.093 299.3);
Tailwind
colors: {
  custom: {
    50: '#67547c',
    500: '#2b1549',
    950: '#000000',
  },
}
SCSS
$custom: #2b1549;
$custom-light: #67547c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1549",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 73
  },
  "hsl": {
    "h": 265.385,
    "s": 55.319,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25865,
    "c": 0.09257,
    "h": 299.3
  },
  "luminance": 0.01531
}

Semantic roles & 50–950 ramp

primary
#2B1549
secondary
#628139
accent
#DF499F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2B1549

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

Preview Lab → · Contrast checker → · Palette generator →

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