#2B1C71#2B1C71

#2B1C71 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.137 H 282.8°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#2B1C71
RGBrgb(43, 28, 113)
HSLhsl(251, 60%, 28%)
HSVhsv(251, 75%, 44%)
CMYKcmyk(61.9%, 75.2%, 0%, 55.7%)
CIE-LABlab(18.08, 32.51, -46.51)
CIE-LCHlch(18.08, 56.75, 304.95°)
OKLaboklab(30.8% 0.0305 -0.134)
OKLCHoklch(30.8% 0.137 282.8)
XYZxyz(4.3912, 2.5361, 15.8777)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1C71 #62711C
analogous
#1C3871 #2B1C71 #551C71
triadic
#2B1C71 #712B1C #1C712B
tetradic
#2B1C71 #711C38 #62711C #1C7155
square
#2B1C71 #711C38 #62711C #1C7155
split-complementary
#2B1C71 #71551C #38711C
monochromatic
#090619 #181040 #2B1C71 #3E28A2 #5439CE

Accessibility & contrast

On white

13.93
#2B1C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2B1C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1C71
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1C71#FFFFFF#000000##FFFFFF
##2B1C711.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1c71;
/* rgb */ color: rgb(43, 28, 113);
/* oklch */ color: oklch(30.8% 0.137 282.8);
Tailwind
colors: {
  custom: {
    50: '#6e5a9b',
    500: '#2b1c71',
    950: '#000000',
  },
}
SCSS
$custom: #2b1c71;
$custom-light: #6e5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1c71",
  "rgb": {
    "r": 43,
    "g": 28,
    "b": 113
  },
  "hsl": {
    "h": 250.588,
    "s": 60.284,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30798,
    "c": 0.13744,
    "h": 282.8
  },
  "luminance": 0.02536
}

Semantic roles & 50–950 ramp

primary
#2B1C71
secondary
#94A643
accent
#E344C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2B1C71

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

Preview Lab → · Contrast checker → · Palette generator →

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