#2B1159#2B1159

#2B1159 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.8% C 0.119 H 293.0°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#2B1159
RGBrgb(43, 17, 89)
HSLhsl(262, 68%, 21%)
HSVhsv(262, 81%, 35%)
CMYKcmyk(51.7%, 80.9%, 0%, 65.1%)
CIE-LABlab(13.45, 31.08, -38.27)
CIE-LCHlch(13.45, 49.30, 309.08°)
OKLaboklab(26.78% 0.0466 -0.1098)
OKLCHoklch(26.78% 0.119 293)
XYZxyz(2.9994, 1.6357, 9.6069)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1159 #3F5911
analogous
#111B59 #2B1159 #4F1159
triadic
#2B1159 #592B11 #11592B
tetradic
#2B1159 #59111B #3F5911 #11594F
square
#2B1159 #59111B #3F5911 #11594F
split-complementary
#2B1159 #594F11 #1B5911
monochromatic
#0C051A #120726 #2B1159 #441B8C #5D25C0

Accessibility & contrast

On white

15.82
#2B1159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2B1159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1159
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1159#FFFFFF#000000##FFFFFF
##2B11591.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235B
Deuteranopia (green-blind)
#002158
Tritanopia (blue-blind)
#1D2534
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2b1159;
/* rgb */ color: rgb(43, 17, 89);
/* oklch */ color: oklch(26.8% 0.119 293.0);
Tailwind
colors: {
  custom: {
    50: '#6a5289',
    500: '#2b1159',
    950: '#000000',
  },
}
SCSS
$custom: #2b1159;
$custom-light: #6a5289;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1159",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 261.667,
    "s": 67.925,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26782,
    "c": 0.11925,
    "h": 293
  },
  "luminance": 0.01636
}

Semantic roles & 50–950 ramp

primary
#2B1159
secondary
#709234
accent
#EB3DAC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B1159

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

Preview Lab → · Contrast checker → · Palette generator →

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