#2B1771#2B1771

#2B1771 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.143 H 283.9°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#2B1771
RGBrgb(43, 23, 113)
HSLhsl(253, 66%, 27%)
HSVhsv(253, 80%, 44%)
CMYKcmyk(61.9%, 79.6%, 0%, 55.7%)
CIE-LABlab(17.08, 35.35, -48.16)
CIE-LCHlch(17.08, 59.74, 306.28°)
OKLaboklab(30.09% 0.0344 -0.1388)
OKLCHoklch(30.09% 0.143 283.9)
XYZxyz(4.2824, 2.3184, 15.8414)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1771 #5D7117
analogous
#173071 #2B1771 #581771
triadic
#2B1771 #712B17 #17712B
tetradic
#2B1771 #711730 #5D7117 #177158
square
#2B1771 #711730 #5D7117 #177158
split-complementary
#2B1771 #715817 #307117
monochromatic
#0A0519 #180D3E #2B1771 #3E21A4 #532ED4

Accessibility & contrast

On white

14.35
#2B1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2B1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1771
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1771#FFFFFF#000000##FFFFFF
##2B17711.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2b1771;
/* rgb */ color: rgb(43, 23, 113);
/* oklch */ color: oklch(30.1% 0.143 283.9);
Tailwind
colors: {
  custom: {
    50: '#6e579b',
    500: '#2b1771',
    950: '#000000',
  },
}
SCSS
$custom: #2b1771;
$custom-light: #6e579b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1771",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 253.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30089,
    "c": 0.14301,
    "h": 283.9
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#2B1771
secondary
#8FA73D
accent
#E93FC3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1771

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

Preview Lab → · Contrast checker → · Palette generator →

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