#2B1261#2B1261

#2B1261 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.128 H 289.7°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#2B1261
RGBrgb(43, 18, 97)
HSLhsl(259, 69%, 23%)
HSVhsv(259, 81%, 38%)
CMYKcmyk(55.7%, 81.4%, 0%, 62%)
CIE-LABlab(14.45, 33.00, -41.98)
CIE-LCHlch(14.45, 53.39, 308.17°)
OKLaboklab(27.74% 0.0432 -0.1207)
OKLCHoklch(27.74% 0.128 289.7)
XYZxyz(3.3696, 1.8091, 11.4786)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1261 #486112
analogous
#122161 #2B1261 #521261
triadic
#2B1261 #612B12 #12612B
tetradic
#2B1261 #611221 #486112 #126152
square
#2B1261 #611221 #486112 #126152
split-complementary
#2B1261 #615212 #216112
monochromatic
#0B051A #14082D #2B1261 #421C95 #5925C8

Accessibility & contrast

On white

15.42
#2B1261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1261
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1261#FFFFFF#000000##FFFFFF
##2B12611.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1261;
/* rgb */ color: rgb(43, 18, 97);
/* oklch */ color: oklch(27.7% 0.128 289.7);
Tailwind
colors: {
  custom: {
    50: '#6b538f',
    500: '#2b1261',
    950: '#000000',
  },
}
SCSS
$custom: #2b1261;
$custom-light: #6b538f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1261",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 97
  },
  "hsl": {
    "h": 258.987,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27738,
    "c": 0.12817,
    "h": 289.7
  },
  "luminance": 0.01809
}

Semantic roles & 50–950 ramp

primary
#2B1261
secondary
#7A9936
accent
#EC3CB4
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B1261

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

Preview Lab → · Contrast checker → · Palette generator →

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