#2B1460#2B1460

#2B1460 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 27.9% C 0.125 H 289.6°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#2B1460
RGBrgb(43, 20, 96)
HSLhsl(258, 66%, 23%)
HSVhsv(258, 79%, 38%)
CMYKcmyk(55.2%, 79.2%, 0%, 62.4%)
CIE-LABlab(14.73, 31.61, -40.86)
CIE-LCHlch(14.73, 51.66, 307.73°)
OKLaboklab(27.9% 0.0418 -0.1174)
OKLCHoklch(27.9% 0.125 289.6)
XYZxyz(3.3571, 1.8583, 11.2459)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1460 #496014
analogous
#142360 #2B1460 #511460
triadic
#2B1460 #602B14 #14602B
tetradic
#2B1460 #601423 #496014 #146051
square
#2B1460 #601423 #496014 #146051
split-complementary
#2B1460 #605114 #236014
monochromatic
#0B0519 #14092D #2B1460 #421F93 #5829C5

Accessibility & contrast

On white

15.31
#2B1460 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1460
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1460#FFFFFF#000000##FFFFFF
##2B14601.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002762
Deuteranopia (green-blind)
#00235F
Tritanopia (blue-blind)
#182939
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b1460;
/* rgb */ color: rgb(43, 20, 96);
/* oklch */ color: oklch(27.9% 0.125 289.6);
Tailwind
colors: {
  custom: {
    50: '#6b548e',
    500: '#2b1460',
    950: '#000000',
  },
}
SCSS
$custom: #2b1460;
$custom-light: #6b548e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1460",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 96
  },
  "hsl": {
    "h": 258.158,
    "s": 65.517,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27899,
    "c": 0.12463,
    "h": 289.6
  },
  "luminance": 0.01858
}

Semantic roles & 50–950 ramp

primary
#2B1460
secondary
#7B9838
accent
#E83FB5
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B1460

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

Preview Lab → · Contrast checker → · Palette generator →

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