#2B1B71#2B1B71

#2B1B71 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.139 H 283.1°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#2B1B71
RGBrgb(43, 27, 113)
HSLhsl(251, 61%, 27%)
HSVhsv(251, 76%, 44%)
CMYKcmyk(61.9%, 76.1%, 0%, 55.7%)
CIE-LABlab(17.87, 33.10, -46.86)
CIE-LCHlch(17.87, 57.37, 305.24°)
OKLaboklab(30.65% 0.0313 -0.135)
OKLCHoklch(30.65% 0.139 283.1)
XYZxyz(4.3679, 2.4894, 15.8699)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B71 #61711B
analogous
#1B3671 #2B1B71 #561B71
triadic
#2B1B71 #712B1B #1B712B
tetradic
#2B1B71 #711B36 #61711B #1B7156
square
#2B1B71 #711B36 #61711B #1B7156
split-complementary
#2B1B71 #71561B #36711B
monochromatic
#090619 #180F40 #2B1B71 #3E27A2 #5337CF

Accessibility & contrast

On white

14.02
#2B1B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2B1B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B71
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B71#FFFFFF#000000##FFFFFF
##2B1B711.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b1b71;
/* rgb */ color: rgb(43, 27, 113);
/* oklch */ color: oklch(30.6% 0.139 283.1);
Tailwind
colors: {
  custom: {
    50: '#6e599b',
    500: '#2b1b71',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b71;
$custom-light: #6e599b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b71",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 251.163,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30649,
    "c": 0.1386,
    "h": 283.1
  },
  "luminance": 0.0249
}

Semantic roles & 50–950 ramp

primary
#2B1B71
secondary
#93A642
accent
#E543C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2B1B71

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

Preview Lab → · Contrast checker → · Palette generator →

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