#2B1147#2B1147

#2B1147 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.096 H 301.9°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#2B1147
RGBrgb(43, 17, 71)
HSLhsl(269, 61%, 17%)
HSVhsv(269, 76%, 28%)
CMYKcmyk(39.4%, 76.1%, 0%, 72.2%)
CIE-LABlab(11.75, 25.70, -28.68)
CIE-LCHlch(11.75, 38.52, 311.86°)
OKLaboklab(25.06% 0.0508 -0.0816)
OKLCHoklch(25.06% 0.096 301.9)
XYZxyz(2.3338, 1.3694, 6.1014)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1147 #2D4711
analogous
#111247 #2B1147 #461147
triadic
#2B1147 #472B11 #11472B
tetradic
#2B1147 #471112 #2D4711 #114746
square
#2B1147 #471112 #2D4711 #114746
split-complementary
#2B1147 #474611 #124711
monochromatic
#0F0619 #0F0619 #2B1147 #491D78 #6729AA

Accessibility & contrast

On white

16.49
#2B1147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2B1147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1147
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1147#FFFFFF#000000##FFFFFF
##2B11471.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F49
Deuteranopia (green-blind)
#001F46
Tritanopia (blue-blind)
#251D2A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2b1147;
/* rgb */ color: rgb(43, 17, 71);
/* oklch */ color: oklch(25.1% 0.096 301.9);
Tailwind
colors: {
  custom: {
    50: '#67517b',
    500: '#2b1147',
    950: '#000000',
  },
}
SCSS
$custom: #2b1147;
$custom-light: #67517b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1147",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 268.889,
    "s": 61.364,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25056,
    "c": 0.09613,
    "h": 301.9
  },
  "luminance": 0.01369
}

Semantic roles & 50–950 ramp

primary
#2B1147
secondary
#5B8133
accent
#E44397
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2B1147

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

Preview Lab → · Contrast checker → · Palette generator →

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