#2B1A71#2B1A71

#2B1A71 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.140 H 283.3°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#2B1A71
RGBrgb(43, 26, 113)
HSLhsl(252, 63%, 27%)
HSVhsv(252, 77%, 44%)
CMYKcmyk(61.9%, 77%, 0%, 55.7%)
CIE-LABlab(17.66, 33.68, -47.19)
CIE-LCHlch(17.66, 57.98, 305.51°)
OKLaboklab(30.5% 0.0321 -0.136)
OKLCHoklch(30.5% 0.14 283.3)
XYZxyz(4.3454, 2.4443, 15.8624)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A71 #60711A
analogous
#1A3571 #2B1A71 #571A71
triadic
#2B1A71 #712B1A #1A712B
tetradic
#2B1A71 #711A35 #60711A #1A7157
square
#2B1A71 #711A35 #60711A #1A7157
split-complementary
#2B1A71 #71571A #35711A
monochromatic
#090619 #180F3F #2B1A71 #3E25A3 #5335D0

Accessibility & contrast

On white

14.10
#2B1A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2B1A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A71
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A71#FFFFFF#000000##FFFFFF
##2B1A711.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.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: #2b1a71;
/* rgb */ color: rgb(43, 26, 113);
/* oklch */ color: oklch(30.5% 0.140 283.3);
Tailwind
colors: {
  custom: {
    50: '#6e599b',
    500: '#2b1a71',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a71;
$custom-light: #6e599b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a71",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 251.724,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30504,
    "c": 0.13974,
    "h": 283.3
  },
  "luminance": 0.02445
}

Semantic roles & 50–950 ramp

primary
#2B1A71
secondary
#92A641
accent
#E642C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1A71

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

Preview Lab → · Contrast checker → · Palette generator →

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