#2B115A#2B115A

#2B115A is a dark, vivid violet. Relative luminance 0.017; OKLCH L 26.9% C 0.121 H 292.6°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#2B115A
RGBrgb(43, 17, 90)
HSLhsl(261, 68%, 21%)
HSVhsv(261, 81%, 35%)
CMYKcmyk(52.2%, 81.1%, 0%, 64.7%)
CIE-LABlab(13.55, 31.39, -38.78)
CIE-LCHlch(13.55, 49.89, 308.99°)
OKLaboklab(26.88% 0.0463 -0.1113)
OKLCHoklch(26.88% 0.121 292.6)
XYZxyz(3.0417, 1.6526, 9.8296)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B115A #405A11
analogous
#111B5A #2B115A #4F115A
triadic
#2B115A #5A2B11 #115A2B
tetradic
#2B115A #5A111B #405A11 #115A4F
square
#2B115A #5A111B #405A11 #115A4F
split-complementary
#2B115A #5A4F11 #1B5A11
monochromatic
#0C051A #120727 #2B115A #441B8D #5C24C1

Accessibility & contrast

On white

15.78
#2B115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B115A
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B115A#FFFFFF#000000##FFFFFF
##2B115A1.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#002159
Tritanopia (blue-blind)
#1C2535
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b115a;
/* rgb */ color: rgb(43, 17, 90);
/* oklch */ color: oklch(26.9% 0.121 292.6);
Tailwind
colors: {
  custom: {
    50: '#6a5289',
    500: '#2b115a',
    950: '#000000',
  },
}
SCSS
$custom: #2b115a;
$custom-light: #6a5289;
$custom-dark: #000000;
JSON
{
  "hex": "#2b115a",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 261.37,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26884,
    "c": 0.12052,
    "h": 292.6
  },
  "luminance": 0.01653
}

Semantic roles & 50–950 ramp

primary
#2B115A
secondary
#719334
accent
#EB3DAD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B115A

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

Preview Lab → · Contrast checker → · Palette generator →

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