#2B1671#2B1671

#2B1671 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.144 H 284.1°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#2B1671
RGBrgb(43, 22, 113)
HSLhsl(254, 67%, 26%)
HSVhsv(254, 81%, 44%)
CMYKcmyk(61.9%, 80.5%, 0%, 55.7%)
CIE-LABlab(16.89, 35.88, -48.47)
CIE-LCHlch(16.89, 60.30, 306.51°)
OKLaboklab(29.96% 0.0352 -0.1397)
OKLCHoklch(29.96% 0.144 284.1)
XYZxyz(4.2629, 2.2794, 15.8349)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1671 #5C7116
analogous
#162F71 #2B1671 #591671
triadic
#2B1671 #712B16 #16712B
tetradic
#2B1671 #71162F #5C7116 #167159
square
#2B1671 #71162F #5C7116 #167159
split-complementary
#2B1671 #715916 #2F7116
monochromatic
#0A051A #180C3E #2B1671 #3E20A4 #532CD6

Accessibility & contrast

On white

14.42
#2B1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1671
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1671#FFFFFF#000000##FFFFFF
##2B16711.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1671;
/* rgb */ color: rgb(43, 22, 113);
/* oklch */ color: oklch(30.0% 0.144 284.1);
Tailwind
colors: {
  custom: {
    50: '#6e569b',
    500: '#2b1671',
    950: '#000000',
  },
}
SCSS
$custom: #2b1671;
$custom-light: #6e569b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1671",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 253.846,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29959,
    "c": 0.14405,
    "h": 284.1
  },
  "luminance": 0.0228
}

Semantic roles & 50–950 ramp

primary
#2B1671
secondary
#8EA73C
accent
#EA3EC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1671

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

Preview Lab → · Contrast checker → · Palette generator →

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