#2B1548#2B1548

#2B1548 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.091 H 299.8°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#2B1548
RGBrgb(43, 21, 72)
HSLhsl(266, 55%, 18%)
HSVhsv(266, 71%, 28%)
CMYKcmyk(40.3%, 70.8%, 0%, 71.8%)
CIE-LABlab(12.72, 23.58, -27.81)
CIE-LCHlch(12.72, 36.46, 310.29°)
OKLaboklab(25.78% 0.0454 -0.0791)
OKLCHoklch(25.78% 0.091 299.8)
XYZxyz(2.4338, 1.5178, 6.2944)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1548 #324815
analogous
#151848 #2B1548 #441548
triadic
#2B1548 #482B15 #15482B
tetradic
#2B1548 #481518 #324815 #154844
square
#2B1548 #481518 #324815 #154844
split-complementary
#2B1548 #484415 #184815
monochromatic
#0E0718 #0F0719 #2B1548 #472377 #6431A7

Accessibility & contrast

On white

16.11
#2B1548 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1548
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1548#FFFFFF#000000##FFFFFF
##2B15481.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214A
Deuteranopia (green-blind)
#022147
Tritanopia (blue-blind)
#25202C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2b1548;
/* rgb */ color: rgb(43, 21, 72);
/* oklch */ color: oklch(25.8% 0.091 299.8);
Tailwind
colors: {
  custom: {
    50: '#67547b',
    500: '#2b1548',
    950: '#000000',
  },
}
SCSS
$custom: #2b1548;
$custom-light: #67547b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1548",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 72
  },
  "hsl": {
    "h": 265.882,
    "s": 54.839,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25779,
    "c": 0.09118,
    "h": 299.8
  },
  "luminance": 0.01518
}

Semantic roles & 50–950 ramp

primary
#2B1548
secondary
#618039
accent
#DE4A9E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2B1548

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

Preview Lab → · Contrast checker → · Palette generator →

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