#2B1168#2B1168

#2B1168 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.138 H 287.6°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#2B1168
RGBrgb(43, 17, 104)
HSLhsl(258, 72%, 24%)
HSVhsv(258, 84%, 41%)
CMYKcmyk(58.7%, 83.7%, 0%, 59.2%)
CIE-LABlab(15.03, 35.63, -45.66)
CIE-LCHlch(15.03, 57.92, 307.97°)
OKLaboklab(28.37% 0.0417 -0.1314)
OKLCHoklch(28.37% 0.138 287.6)
XYZxyz(3.6947, 1.9138, 13.2687)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1168 #4E6811
analogous
#112268 #2B1168 #561168
triadic
#2B1168 #682B11 #11682B
tetradic
#2B1168 #681122 #4E6811 #116856
square
#2B1168 #681122 #4E6811 #116856
split-complementary
#2B1168 #685611 #226811
monochromatic
#0B041A #150833 #2B1168 #411A9D #5622D1

Accessibility & contrast

On white

15.19
#2B1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1168
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1168#FFFFFF#000000##FFFFFF
##2B11681.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286A
Deuteranopia (green-blind)
#002366
Tritanopia (blue-blind)
#102B3D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b1168;
/* rgb */ color: rgb(43, 17, 104);
/* oklch */ color: oklch(28.4% 0.138 287.6);
Tailwind
colors: {
  custom: {
    50: '#6d5394',
    500: '#2b1168',
    950: '#000000',
  },
}
SCSS
$custom: #2b1168;
$custom-light: #6d5394;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1168",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 257.931,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28366,
    "c": 0.13788,
    "h": 287.6
  },
  "luminance": 0.01914
}

Semantic roles & 50–950 ramp

primary
#2B1168
secondary
#80A035
accent
#EF39B8
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2B1168

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

Preview Lab → · Contrast checker → · Palette generator →

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