#2B1461#2B1461

#2B1461 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.0% C 0.126 H 289.2°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#2B1461
RGBrgb(43, 20, 97)
HSLhsl(258, 66%, 23%)
HSVhsv(258, 79%, 38%)
CMYKcmyk(55.7%, 79.4%, 0%, 62%)
CIE-LABlab(14.83, 31.93, -41.36)
CIE-LCHlch(14.83, 52.25, 307.67°)
OKLaboklab(28% 0.0415 -0.1189)
OKLCHoklch(28% 0.126 289.2)
XYZxyz(3.4035, 1.8768, 11.4899)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1461 #4A6114
analogous
#142361 #2B1461 #511461
triadic
#2B1461 #612B14 #14612B
tetradic
#2B1461 #611423 #4A6114 #146151
square
#2B1461 #611423 #4A6114 #146151
split-complementary
#2B1461 #615114 #236114
monochromatic
#0B0519 #150A2E #2B1461 #411E94 #5829C6

Accessibility & contrast

On white

15.27
#2B1461 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2B1461 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1461
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1461#FFFFFF#000000##FFFFFF
##2B14611.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1461;
/* rgb */ color: rgb(43, 20, 97);
/* oklch */ color: oklch(28.0% 0.126 289.2);
Tailwind
colors: {
  custom: {
    50: '#6b548f',
    500: '#2b1461',
    950: '#000000',
  },
}
SCSS
$custom: #2b1461;
$custom-light: #6b548f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1461",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 97
  },
  "hsl": {
    "h": 257.922,
    "s": 65.812,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28001,
    "c": 0.12592,
    "h": 289.2
  },
  "luminance": 0.01877
}

Semantic roles & 50–950 ramp

primary
#2B1461
secondary
#7C9838
accent
#E93FB6
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B1461

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

Preview Lab → · Contrast checker → · Palette generator →

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