#2B1260#2B1260

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

Color values

HEX#2B1260
RGBrgb(43, 18, 96)
HSLhsl(259, 68%, 22%)
HSVhsv(259, 81%, 38%)
CMYKcmyk(55.2%, 81.3%, 0%, 62.4%)
CIE-LABlab(14.35, 32.69, -41.48)
CIE-LCHlch(14.35, 52.81, 308.24°)
OKLaboklab(27.63% 0.0436 -0.1192)
OKLCHoklch(27.63% 0.127 290.1)
XYZxyz(3.3233, 1.7906, 11.2346)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1260 #476012
analogous
#122060 #2B1260 #521260
triadic
#2B1260 #602B12 #12602B
tetradic
#2B1260 #601220 #476012 #126052
square
#2B1260 #601220 #476012 #126052
split-complementary
#2B1260 #605212 #206012
monochromatic
#0C051A #14082C #2B1260 #421C94 #5925C7

Accessibility & contrast

On white

15.46
#2B1260 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1260
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1260#FFFFFF#000000##FFFFFF
##2B12601.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002662
Deuteranopia (green-blind)
#00225F
Tritanopia (blue-blind)
#182838
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b1260;
/* rgb */ color: rgb(43, 18, 96);
/* oklch */ color: oklch(27.6% 0.127 290.1);
Tailwind
colors: {
  custom: {
    50: '#6b538e',
    500: '#2b1260',
    950: '#000000',
  },
}
SCSS
$custom: #2b1260;
$custom-light: #6b538e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1260",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 96
  },
  "hsl": {
    "h": 259.231,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27633,
    "c": 0.12692,
    "h": 290.1
  },
  "luminance": 0.01791
}

Semantic roles & 50–950 ramp

primary
#2B1260
secondary
#799836
accent
#EB3DB3
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B1260

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

Preview Lab → · Contrast checker → · Palette generator →

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