#2B1361#2B1361

#2B1361 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.9% C 0.127 H 289.5°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#2B1361
RGBrgb(43, 19, 97)
HSLhsl(258, 67%, 23%)
HSVhsv(258, 80%, 38%)
CMYKcmyk(55.7%, 80.4%, 0%, 62%)
CIE-LABlab(14.64, 32.47, -41.67)
CIE-LCHlch(14.64, 52.83, 307.92°)
OKLaboklab(27.87% 0.0424 -0.1198)
OKLCHoklch(27.87% 0.127 289.5)
XYZxyz(3.3862, 1.8422, 11.4841)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1361 #496113
analogous
#132261 #2B1361 #521361
triadic
#2B1361 #612B13 #13612B
tetradic
#2B1361 #611322 #496113 #136152
square
#2B1361 #611322 #496113 #136152
split-complementary
#2B1361 #615213 #226113
monochromatic
#0B051A #14092E #2B1361 #421D94 #5827C7

Accessibility & contrast

On white

15.35
#2B1361 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2B1361 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1361
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1361#FFFFFF#000000##FFFFFF
##2B13611.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002663
Deuteranopia (green-blind)
#002360
Tritanopia (blue-blind)
#172939
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b1361;
/* rgb */ color: rgb(43, 19, 97);
/* oklch */ color: oklch(27.9% 0.127 289.5);
Tailwind
colors: {
  custom: {
    50: '#6b548f',
    500: '#2b1361',
    950: '#000000',
  },
}
SCSS
$custom: #2b1361;
$custom-light: #6b548f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1361",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 97
  },
  "hsl": {
    "h": 258.462,
    "s": 67.241,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27868,
    "c": 0.12706,
    "h": 289.5
  },
  "luminance": 0.01842
}

Semantic roles & 50–950 ramp

primary
#2B1361
secondary
#7B9937
accent
#EA3EB5
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B1361

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

Preview Lab → · Contrast checker → · Palette generator →

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