#2B1076#2B1076

#2B1076 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.156 H 283.8°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#2B1076
RGBrgb(43, 16, 118)
HSLhsl(256, 76%, 26%)
HSVhsv(256, 86%, 46%)
CMYKcmyk(63.6%, 86.4%, 0%, 53.7%)
CIE-LABlab(16.46, 40.29, -52.40)
CIE-LCHlch(16.46, 66.10, 307.55°)
OKLaboklab(29.83% 0.0372 -0.1511)
OKLCHoklch(29.83% 0.156 283.8)
XYZxyz(4.4506, 2.1919, 17.3246)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1076 #5B7610
analogous
#102876 #2B1076 #5E1076
triadic
#2B1076 #762B10 #10762B
tetradic
#2B1076 #761028 #5B7610 #10765E
square
#2B1076 #761028 #5B7610 #10765E
split-complementary
#2B1076 #765E10 #287610
monochromatic
#0A041B #170940 #2B1076 #3F17AC #5320E1

Accessibility & contrast

On white

14.60
#2B1076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2B1076 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1076
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1076#FFFFFF#000000##FFFFFF
##2B10761.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002574
Tritanopia (blue-blind)
#003045
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b1076;
/* rgb */ color: rgb(43, 16, 118);
/* oklch */ color: oklch(29.8% 0.156 283.8);
Tailwind
colors: {
  custom: {
    50: '#70549f',
    500: '#2b1076',
    950: '#000000',
  },
}
SCSS
$custom: #2b1076;
$custom-light: #70549f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1076",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 118
  },
  "hsl": {
    "h": 255.882,
    "s": 76.119,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29831,
    "c": 0.15559,
    "h": 283.8
  },
  "luminance": 0.02192
}

Semantic roles & 50–950 ramp

primary
#2B1076
secondary
#8DAD35
accent
#F335C1
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2B1076

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

Preview Lab → · Contrast checker → · Palette generator →

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