#2B115B#2B115B

#2B115B is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.0% C 0.122 H 292.2°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#2B115B
RGBrgb(43, 17, 91)
HSLhsl(261, 69%, 21%)
HSVhsv(261, 81%, 36%)
CMYKcmyk(52.7%, 81.3%, 0%, 64.3%)
CIE-LABlab(13.65, 31.69, -39.28)
CIE-LCHlch(13.65, 50.47, 308.89°)
OKLaboklab(26.99% 0.046 -0.1128)
OKLCHoklch(26.99% 0.122 292.2)
XYZxyz(3.0845, 1.6697, 10.0553)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B115B #415B11
analogous
#111C5B #2B115B #50115B
triadic
#2B115B #5B2B11 #115B2B
tetradic
#2B115B #5B111C #415B11 #115B50
square
#2B115B #5B111C #415B11 #115B50
split-complementary
#2B115B #5B5011 #1C5B11
monochromatic
#0C051A #130727 #2B115B #431B8F #5C24C2

Accessibility & contrast

On white

15.74
#2B115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2B115B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B115B
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B115B#FFFFFF#000000##FFFFFF
##2B115B1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#00215A
Tritanopia (blue-blind)
#1B2535
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b115b;
/* rgb */ color: rgb(43, 17, 91);
/* oklch */ color: oklch(27.0% 0.122 292.2);
Tailwind
colors: {
  custom: {
    50: '#6a528a',
    500: '#2b115b',
    950: '#000000',
  },
}
SCSS
$custom: #2b115b;
$custom-light: #6a528a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b115b",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 261.081,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26986,
    "c": 0.12177,
    "h": 292.2
  },
  "luminance": 0.0167
}

Semantic roles & 50–950 ramp

primary
#2B115B
secondary
#729434
accent
#EB3CAE
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B115B

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

Preview Lab → · Contrast checker → · Palette generator →

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