#2B1167#2B1167

#2B1167 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.137 H 287.9°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#2B1167
RGBrgb(43, 17, 103)
HSLhsl(258, 72%, 24%)
HSVhsv(258, 83%, 40%)
CMYKcmyk(58.3%, 83.5%, 0%, 59.6%)
CIE-LABlab(14.92, 35.33, -45.18)
CIE-LCHlch(14.92, 57.35, 308.02°)
OKLaboklab(28.26% 0.042 -0.13)
OKLCHoklch(28.26% 0.137 287.9)
XYZxyz(3.6442, 1.8936, 13.0028)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1167 #4D6711
analogous
#112267 #2B1167 #561167
triadic
#2B1167 #672B11 #11672B
tetradic
#2B1167 #671122 #4D6711 #116756
square
#2B1167 #671122 #4D6711 #116756
split-complementary
#2B1167 #675611 #226711
monochromatic
#0B041A #150832 #2B1167 #411A9C #5722D0

Accessibility & contrast

On white

15.23
#2B1167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2B1167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1167
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1167#FFFFFF#000000##FFFFFF
##2B11671.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002769
Deuteranopia (green-blind)
#002365
Tritanopia (blue-blind)
#112A3C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b1167;
/* rgb */ color: rgb(43, 17, 103);
/* oklch */ color: oklch(28.3% 0.137 287.9);
Tailwind
colors: {
  custom: {
    50: '#6d5393',
    500: '#2b1167',
    950: '#000000',
  },
}
SCSS
$custom: #2b1167;
$custom-light: #6d5393;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1167",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 258.14,
    "s": 71.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28257,
    "c": 0.13666,
    "h": 287.9
  },
  "luminance": 0.01894
}

Semantic roles & 50–950 ramp

primary
#2B1167
secondary
#7F9F35
accent
#EE39B8
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#08020D
muted
#7A787E

Preview Lab

Preview with #2B1167

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

Preview Lab → · Contrast checker → · Palette generator →

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