#2B115D#2B115D

#2B115D is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.2% C 0.124 H 291.4°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#2B115D
RGBrgb(43, 17, 93)
HSLhsl(261, 69%, 22%)
HSVhsv(261, 82%, 36%)
CMYKcmyk(53.8%, 81.7%, 0%, 63.5%)
CIE-LABlab(13.85, 32.29, -40.29)
CIE-LCHlch(13.85, 51.63, 308.72°)
OKLaboklab(27.19% 0.0454 -0.1157)
OKLCHoklch(27.19% 0.124 291.4)
XYZxyz(3.1719, 1.7047, 10.5157)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B115D #435D11
analogous
#111D5D #2B115D #51115D
triadic
#2B115D #5D2B11 #115D2B
tetradic
#2B115D #5D111D #435D11 #115D51
square
#2B115D #5D111D #435D11 #115D51
split-complementary
#2B115D #5D5111 #1D5D11
monochromatic
#0C051A #130829 #2B115D #431A91 #5B24C4

Accessibility & contrast

On white

15.66
#2B115D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B115D
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B115D#FFFFFF#000000##FFFFFF
##2B115D1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#00225C
Tritanopia (blue-blind)
#1A2636
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b115d;
/* rgb */ color: rgb(43, 17, 93);
/* oklch */ color: oklch(27.2% 0.124 291.4);
Tailwind
colors: {
  custom: {
    50: '#6b528c',
    500: '#2b115d',
    950: '#000000',
  },
}
SCSS
$custom: #2b115d;
$custom-light: #6b528c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b115d",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 93
  },
  "hsl": {
    "h": 260.526,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27193,
    "c": 0.12428,
    "h": 291.4
  },
  "luminance": 0.01705
}

Semantic roles & 50–950 ramp

primary
#2B115D
secondary
#749634
accent
#EC3CB0
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B115D

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

Preview Lab → · Contrast checker → · Palette generator →

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