#2B115C#2B115C

#2B115C is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.123 H 291.8°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#2B115C
RGBrgb(43, 17, 92)
HSLhsl(261, 69%, 21%)
HSVhsv(261, 82%, 36%)
CMYKcmyk(53.3%, 81.5%, 0%, 63.9%)
CIE-LABlab(13.75, 31.99, -39.79)
CIE-LCHlch(13.75, 51.05, 308.80°)
OKLaboklab(27.09% 0.0457 -0.1142)
OKLCHoklch(27.09% 0.123 291.8)
XYZxyz(3.1279, 1.6871, 10.2840)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B115C #425C11
analogous
#111D5C #2B115C #51115C
triadic
#2B115C #5C2B11 #115C2B
tetradic
#2B115C #5C111D #425C11 #115C51
square
#2B115C #5C111D #425C11 #115C51
split-complementary
#2B115C #5C5111 #1D5C11
monochromatic
#0C051A #130728 #2B115C #431B90 #5B24C3

Accessibility & contrast

On white

15.70
#2B115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2B115C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B115C
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B115C#FFFFFF#000000##FFFFFF
##2B115C1.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00225B
Tritanopia (blue-blind)
#1B2636
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b115c;
/* rgb */ color: rgb(43, 17, 92);
/* oklch */ color: oklch(27.1% 0.123 291.8);
Tailwind
colors: {
  custom: {
    50: '#6b528b',
    500: '#2b115c',
    950: '#000000',
  },
}
SCSS
$custom: #2b115c;
$custom-light: #6b528b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b115c",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 260.8,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27089,
    "c": 0.12303,
    "h": 291.8
  },
  "luminance": 0.01687
}

Semantic roles & 50–950 ramp

primary
#2B115C
secondary
#739534
accent
#EC3CAF
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B115C

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

Preview Lab → · Contrast checker → · Palette generator →

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