#2B116A#2B116A

#2B116A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.140 H 287.0°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#2B116A
RGBrgb(43, 17, 106)
HSLhsl(258, 72%, 24%)
HSVhsv(258, 84%, 42%)
CMYKcmyk(59.4%, 84%, 0%, 58.4%)
CIE-LABlab(15.25, 36.24, -46.61)
CIE-LCHlch(15.25, 59.04, 307.87°)
OKLaboklab(28.59% 0.041 -0.1342)
OKLCHoklch(28.59% 0.14 287)
XYZxyz(3.7975, 1.9549, 13.8101)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B116A #506A11
analogous
#11246A #2B116A #58116A
triadic
#2B116A #6A2B11 #116A2B
tetradic
#2B116A #6A1124 #506A11 #116A58
square
#2B116A #6A1124 #506A11 #116A58
split-complementary
#2B116A #6A5811 #246A11
monochromatic
#0B041A #160935 #2B116A #40199F #5622D3

Accessibility & contrast

On white

15.10
#2B116A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2B116A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B116A
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B116A#FFFFFF#000000##FFFFFF
##2B116A1.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#002468
Tritanopia (blue-blind)
#0D2B3E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b116a;
/* rgb */ color: rgb(43, 17, 106);
/* oklch */ color: oklch(28.6% 0.140 287.0);
Tailwind
colors: {
  custom: {
    50: '#6d5396',
    500: '#2b116a',
    950: '#000000',
  },
}
SCSS
$custom: #2b116a;
$custom-light: #6d5396;
$custom-dark: #000000;
JSON
{
  "hex": "#2b116a",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 106
  },
  "hsl": {
    "h": 257.528,
    "s": 72.358,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28586,
    "c": 0.14032,
    "h": 287
  },
  "luminance": 0.01955
}

Semantic roles & 50–950 ramp

primary
#2B116A
secondary
#82A235
accent
#EF39BA
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2B116A

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

Preview Lab → · Contrast checker → · Palette generator →

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