#2B1971#2B1971

#2B1971 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.141 H 283.5°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#2B1971
RGBrgb(43, 25, 113)
HSLhsl(252, 64%, 27%)
HSVhsv(252, 78%, 44%)
CMYKcmyk(61.9%, 77.9%, 0%, 55.7%)
CIE-LABlab(17.46, 34.25, -47.52)
CIE-LCHlch(17.46, 58.58, 305.78°)
OKLaboklab(30.36% 0.0329 -0.1369)
OKLCHoklch(30.36% 0.141 283.5)
XYZxyz(4.3236, 2.4008, 15.8552)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1971 #5F7119
analogous
#193371 #2B1971 #571971
triadic
#2B1971 #712B19 #19712B
tetradic
#2B1971 #711933 #5F7119 #197157
square
#2B1971 #711933 #5F7119 #197157
split-complementary
#2B1971 #715719 #337119
monochromatic
#0A0619 #180E3F #2B1971 #3E24A3 #5333D2

Accessibility & contrast

On white

14.19
#2B1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2B1971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1971
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1971#FFFFFF#000000##FFFFFF
##2B19711.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b1971;
/* rgb */ color: rgb(43, 25, 113);
/* oklch */ color: oklch(30.4% 0.141 283.5);
Tailwind
colors: {
  custom: {
    50: '#6e589b',
    500: '#2b1971',
    950: '#000000',
  },
}
SCSS
$custom: #2b1971;
$custom-light: #6e589b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1971",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 252.273,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30362,
    "c": 0.14085,
    "h": 283.5
  },
  "luminance": 0.02401
}

Semantic roles & 50–950 ramp

primary
#2B1971
secondary
#91A640
accent
#E741C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1971

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

Preview Lab → · Contrast checker → · Palette generator →

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