#2B1165#2B1165

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

Color values

HEX#2B1165
RGBrgb(43, 17, 101)
HSLhsl(259, 71%, 23%)
HSVhsv(259, 83%, 40%)
CMYKcmyk(57.4%, 83.2%, 0%, 60.4%)
CIE-LABlab(14.70, 34.72, -44.22)
CIE-LCHlch(14.70, 56.22, 308.14°)
OKLaboklab(28.04% 0.0427 -0.1272)
OKLCHoklch(28.04% 0.134 288.6)
XYZxyz(3.5450, 1.8539, 12.4804)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1165 #4B6511
analogous
#112165 #2B1165 #551165
triadic
#2B1165 #652B11 #11652B
tetradic
#2B1165 #651121 #4B6511 #116555
square
#2B1165 #651121 #4B6511 #116555
split-complementary
#2B1165 #655511 #216511
monochromatic
#0B041A #150831 #2B1165 #411A99 #5823CE

Accessibility & contrast

On white

15.32
#2B1165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1165
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1165#FFFFFF#000000##FFFFFF
##2B11651.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002767
Deuteranopia (green-blind)
#002363
Tritanopia (blue-blind)
#13293B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b1165;
/* rgb */ color: rgb(43, 17, 101);
/* oklch */ color: oklch(28.0% 0.134 288.6);
Tailwind
colors: {
  custom: {
    50: '#6c5392',
    500: '#2b1165',
    950: '#000000',
  },
}
SCSS
$custom: #2b1165;
$custom-light: #6c5392;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1165",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 101
  },
  "hsl": {
    "h": 258.571,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28041,
    "c": 0.1342,
    "h": 288.6
  },
  "luminance": 0.01854
}

Semantic roles & 50–950 ramp

primary
#2B1165
secondary
#7D9D35
accent
#EE3AB6
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #2B1165

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

Preview Lab → · Contrast checker → · Palette generator →

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