#2B1166#2B1166

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

Color values

HEX#2B1166
RGBrgb(43, 17, 102)
HSLhsl(258, 71%, 23%)
HSVhsv(258, 83%, 40%)
CMYKcmyk(57.8%, 83.3%, 0%, 60%)
CIE-LABlab(14.81, 35.03, -44.70)
CIE-LCHlch(14.81, 56.79, 308.08°)
OKLaboklab(28.15% 0.0424 -0.1286)
OKLCHoklch(28.15% 0.135 288.2)
XYZxyz(3.5943, 1.8736, 12.7400)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1166 #4C6611
analogous
#112166 #2B1166 #551166
triadic
#2B1166 #662B11 #11662B
tetradic
#2B1166 #661121 #4C6611 #116655
square
#2B1166 #661121 #4C6611 #116655
split-complementary
#2B1166 #665511 #216611
monochromatic
#0B041A #150832 #2B1166 #411A9A #5722CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B1166#FFFFFF#000000##FFFFFF
##2B11661.0015.271.3715.27
#FFFFFF15.271.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002768
Deuteranopia (green-blind)
#002364
Tritanopia (blue-blind)
#122A3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b1166;
/* rgb */ color: rgb(43, 17, 102);
/* oklch */ color: oklch(28.1% 0.135 288.2);
Tailwind
colors: {
  custom: {
    50: '#6c5393',
    500: '#2b1166',
    950: '#000000',
  },
}
SCSS
$custom: #2b1166;
$custom-light: #6c5393;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1166",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 258.353,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28149,
    "c": 0.13543,
    "h": 288.2
  },
  "luminance": 0.01874
}

Semantic roles & 50–950 ramp

primary
#2B1166
secondary
#7E9E35
accent
#EE3AB7
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#08020D
muted
#7A787E

Preview Lab

Preview with #2B1166

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

Preview Lab → · Contrast checker → · Palette generator →

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