#2B1156#2B1156

#2B1156 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.115 H 294.2°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#2B1156
RGBrgb(43, 17, 86)
HSLhsl(263, 67%, 20%)
HSVhsv(263, 80%, 34%)
CMYKcmyk(50%, 80.2%, 0%, 66.3%)
CIE-LABlab(13.15, 30.18, -36.73)
CIE-LCHlch(13.15, 47.54, 309.41°)
OKLaboklab(26.48% 0.0474 -0.1053)
OKLCHoklch(26.48% 0.115 294.2)
XYZxyz(2.8760, 1.5863, 8.9569)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1156 #3C5611
analogous
#111956 #2B1156 #4D1156
triadic
#2B1156 #562B11 #11562B
tetradic
#2B1156 #561119 #3C5611 #11564D
square
#2B1156 #561119 #3C5611 #11564D
split-complementary
#2B1156 #564D11 #195611
monochromatic
#0D051A #110723 #2B1156 #451B89 #5E25BC

Accessibility & contrast

On white

15.94
#2B1156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2B1156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1156
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1156#FFFFFF#000000##FFFFFF
##2B11561.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002358
Deuteranopia (green-blind)
#002155
Tritanopia (blue-blind)
#1E2332
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2b1156;
/* rgb */ color: rgb(43, 17, 86);
/* oklch */ color: oklch(26.5% 0.115 294.2);
Tailwind
colors: {
  custom: {
    50: '#6a5286',
    500: '#2b1156',
    950: '#000000',
  },
}
SCSS
$custom: #2b1156;
$custom-light: #6a5286;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1156",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 262.609,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26479,
    "c": 0.11546,
    "h": 294.2
  },
  "luminance": 0.01586
}

Semantic roles & 50–950 ramp

primary
#2B1156
secondary
#6D8F34
accent
#EA3EA9
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B1156

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

Preview Lab → · Contrast checker → · Palette generator →

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