#2B1546#2B1546

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

Color values

HEX#2B1546
RGBrgb(43, 21, 70)
HSLhsl(267, 54%, 18%)
HSVhsv(267, 70%, 27%)
CMYKcmyk(38.6%, 70%, 0%, 72.5%)
CIE-LABlab(12.56, 22.97, -26.68)
CIE-LCHlch(12.56, 35.21, 310.73°)
OKLaboklab(25.61% 0.0455 -0.0758)
OKLCHoklch(25.61% 0.088 301)
XYZxyz(2.3697, 1.4921, 5.9563)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1546 #304615
analogous
#151746 #2B1546 #431546
triadic
#2B1546 #462B15 #15462B
tetradic
#2B1546 #461517 #304615 #154643
square
#2B1546 #461517 #304615 #154643
split-complementary
#2B1546 #464315 #174615
monochromatic
#0E0718 #0E0718 #2B1546 #482375 #6531A4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B1546#FFFFFF#000000##FFFFFF
##2B15461.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)
#002048
Deuteranopia (green-blind)
#042045
Tritanopia (blue-blind)
#25202B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2b1546;
/* rgb */ color: rgb(43, 21, 70);
/* oklch */ color: oklch(25.6% 0.088 301.0);
Tailwind
colors: {
  custom: {
    50: '#67547a',
    500: '#2b1546',
    950: '#000000',
  },
}
SCSS
$custom: #2b1546;
$custom-light: #67547a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1546",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 70
  },
  "hsl": {
    "h": 266.939,
    "s": 53.846,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25609,
    "c": 0.0884,
    "h": 301
  },
  "luminance": 0.01492
}

Semantic roles & 50–950 ramp

primary
#2B1546
secondary
#5F7E39
accent
#DD4B9B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2B1546

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

Preview Lab → · Contrast checker → · Palette generator →

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