#2B1471#2B1471

#2B1471 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.146 H 284.5°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#2B1471
RGBrgb(43, 20, 113)
HSLhsl(255, 70%, 26%)
HSVhsv(255, 82%, 44%)
CMYKcmyk(61.9%, 82.3%, 0%, 55.7%)
CIE-LABlab(16.53, 36.91, -49.06)
CIE-LCHlch(16.53, 61.39, 306.96°)
OKLaboklab(29.71% 0.0366 -0.1414)
OKLCHoklch(29.71% 0.146 284.5)
XYZxyz(4.2261, 2.2059, 15.8227)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1471 #5A7114
analogous
#142B71 #2B1471 #591471
triadic
#2B1471 #712B14 #14712B
tetradic
#2B1471 #71142B #5A7114 #147159
square
#2B1471 #71142B #5A7114 #147159
split-complementary
#2B1471 #715914 #2B7114
monochromatic
#0A051A #170B3D #2B1471 #3F1DA5 #5327D9

Accessibility & contrast

On white

14.57
#2B1471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1471
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1471#FFFFFF#000000##FFFFFF
##2B14711.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#013042
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b1471;
/* rgb */ color: rgb(43, 20, 113);
/* oklch */ color: oklch(29.7% 0.146 284.5);
Tailwind
colors: {
  custom: {
    50: '#6e559b',
    500: '#2b1471',
    950: '#000000',
  },
}
SCSS
$custom: #2b1471;
$custom-light: #6e559b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1471",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 113
  },
  "hsl": {
    "h": 254.839,
    "s": 69.925,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29709,
    "c": 0.14603,
    "h": 284.5
  },
  "luminance": 0.02206
}

Semantic roles & 50–950 ramp

primary
#2B1471
secondary
#8CA739
accent
#ED3BC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1471

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

Preview Lab → · Contrast checker → · Palette generator →

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