#2B1169#2B1169

#2B1169 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.5% C 0.139 H 287.3°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#2B1169
RGBrgb(43, 17, 105)
HSLhsl(258, 72%, 24%)
HSVhsv(258, 84%, 41%)
CMYKcmyk(59%, 83.8%, 0%, 58.8%)
CIE-LABlab(15.14, 35.94, -46.14)
CIE-LCHlch(15.14, 58.48, 307.92°)
OKLaboklab(28.48% 0.0414 -0.1328)
OKLCHoklch(28.48% 0.139 287.3)
XYZxyz(3.7458, 1.9342, 13.5378)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1169 #4F6911
analogous
#112369 #2B1169 #571169
triadic
#2B1169 #692B11 #11692B
tetradic
#2B1169 #691123 #4F6911 #116957
square
#2B1169 #691123 #4F6911 #116957
split-complementary
#2B1169 #695711 #236911
monochromatic
#0B041A #150834 #2B1169 #411A9E #5622D2

Accessibility & contrast

On white

15.14
#2B1169 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2B1169 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1169
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1169#FFFFFF#000000##FFFFFF
##2B11691.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286B
Deuteranopia (green-blind)
#002467
Tritanopia (blue-blind)
#0F2B3D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b1169;
/* rgb */ color: rgb(43, 17, 105);
/* oklch */ color: oklch(28.5% 0.139 287.3);
Tailwind
colors: {
  custom: {
    50: '#6d5395',
    500: '#2b1169',
    950: '#000000',
  },
}
SCSS
$custom: #2b1169;
$custom-light: #6d5395;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1169",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 105
  },
  "hsl": {
    "h": 257.727,
    "s": 72.131,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28476,
    "c": 0.1391,
    "h": 287.3
  },
  "luminance": 0.01934
}

Semantic roles & 50–950 ramp

primary
#2B1169
secondary
#81A135
accent
#EF39B9
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2B1169

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

Preview Lab → · Contrast checker → · Palette generator →

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