#2B1161#2B1161

#2B1161 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.129 H 289.9°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#2B1161
RGBrgb(43, 17, 97)
HSLhsl(260, 70%, 22%)
HSVhsv(260, 82%, 38%)
CMYKcmyk(55.7%, 82.5%, 0%, 62%)
CIE-LABlab(14.27, 33.51, -42.27)
CIE-LCHlch(14.27, 53.94, 308.41°)
OKLaboklab(27.61% 0.0441 -0.1215)
OKLCHoklch(27.61% 0.129 289.9)
XYZxyz(3.3538, 1.7774, 11.4733)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1161 #476111
analogous
#111F61 #2B1161 #531161
triadic
#2B1161 #612B11 #11612B
tetradic
#2B1161 #61111F #476111 #116153
square
#2B1161 #61111F #476111 #116153
split-complementary
#2B1161 #615311 #1F6111
monochromatic
#0C051A #14082D #2B1161 #421A95 #5923C9

Accessibility & contrast

On white

15.49
#2B1161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2B1161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1161
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1161#FFFFFF#000000##FFFFFF
##2B11611.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002663
Deuteranopia (green-blind)
#002260
Tritanopia (blue-blind)
#172839
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b1161;
/* rgb */ color: rgb(43, 17, 97);
/* oklch */ color: oklch(27.6% 0.129 289.9);
Tailwind
colors: {
  custom: {
    50: '#6c538f',
    500: '#2b1161',
    950: '#000000',
  },
}
SCSS
$custom: #2b1161;
$custom-light: #6c538f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1161",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 259.5,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27613,
    "c": 0.12926,
    "h": 289.9
  },
  "luminance": 0.01778
}

Semantic roles & 50–950 ramp

primary
#2B1161
secondary
#799934
accent
#ED3BB3
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B1161

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

Preview Lab → · Contrast checker → · Palette generator →

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