#2B1152#2B1152

#2B1152 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.110 H 296.1°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#2B1152
RGBrgb(43, 17, 82)
HSLhsl(264, 66%, 19%)
HSVhsv(264, 79%, 32%)
CMYKcmyk(47.6%, 79.3%, 0%, 67.8%)
CIE-LABlab(12.76, 28.97, -34.64)
CIE-LCHlch(12.76, 45.16, 309.90°)
OKLaboklab(26.08% 0.0485 -0.0991)
OKLCHoklch(26.08% 0.11 296.1)
XYZxyz(2.7193, 1.5236, 8.1318)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1152 #385211
analogous
#111852 #2B1152 #4C1152
triadic
#2B1152 #522B11 #11522B
tetradic
#2B1152 #521118 #385211 #11524C
square
#2B1152 #521118 #385211 #11524C
split-complementary
#2B1152 #524C11 #185211
monochromatic
#0D0519 #10061F #2B1152 #461C85 #6026B7

Accessibility & contrast

On white

16.09
#2B1152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2B1152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1152
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1152#FFFFFF#000000##FFFFFF
##2B11521.0016.091.3016.09
#FFFFFF16.091.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#002051
Tritanopia (blue-blind)
#202230
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2b1152;
/* rgb */ color: rgb(43, 17, 82);
/* oklch */ color: oklch(26.1% 0.110 296.1);
Tailwind
colors: {
  custom: {
    50: '#695283',
    500: '#2b1152',
    950: '#000000',
  },
}
SCSS
$custom: #2b1152;
$custom-light: #695283;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1152",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 264,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26084,
    "c": 0.11036,
    "h": 296.1
  },
  "luminance": 0.01524
}

Semantic roles & 50–950 ramp

primary
#2B1152
secondary
#688B34
accent
#E93FA5
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B1152

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

Preview Lab → · Contrast checker → · Palette generator →

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