#2B1B76#2B1B76

#2B1B76 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.145 H 282.0°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#2B1B76
RGBrgb(43, 27, 118)
HSLhsl(251, 63%, 28%)
HSVhsv(251, 77%, 46%)
CMYKcmyk(63.6%, 77.1%, 0%, 53.7%)
CIE-LABlab(18.39, 34.74, -49.23)
CIE-LCHlch(18.39, 60.25, 305.21°)
OKLaboklab(31.17% 0.0301 -0.1419)
OKLCHoklch(31.17% 0.145 282)
XYZxyz(4.6572, 2.6051, 17.3935)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B76 #66761B
analogous
#1B3876 #2B1B76 #581B76
triadic
#2B1B76 #762B1B #1B762B
tetradic
#2B1B76 #761B38 #66761B #1B7658
square
#2B1B76 #761B38 #66761B #1B7658
split-complementary
#2B1B76 #76581B #38761B
monochromatic
#090619 #191044 #2B1B76 #3D26A8 #543AD2

Accessibility & contrast

On white

13.81
#2B1B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2B1B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B76
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B76#FFFFFF#000000##FFFFFF
##2B1B761.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002A74
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b1b76;
/* rgb */ color: rgb(43, 27, 118);
/* oklch */ color: oklch(31.2% 0.145 282.0);
Tailwind
colors: {
  custom: {
    50: '#6f599e',
    500: '#2b1b76',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b76;
$custom-light: #6f599e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b76",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 250.549,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31171,
    "c": 0.14511,
    "h": 282
  },
  "luminance": 0.02605
}

Semantic roles & 50–950 ramp

primary
#2B1B76
secondary
#98AA42
accent
#E642C9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2B1B76

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

Preview Lab → · Contrast checker → · Palette generator →

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