#2A1B71#2A1B71

#2A1B71 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.139 H 282.4°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#2A1B71
RGBrgb(42, 27, 113)
HSLhsl(250, 61%, 27%)
HSVhsv(250, 76%, 44%)
CMYKcmyk(62.8%, 76.1%, 0%, 55.7%)
CIE-LABlab(17.77, 32.95, -47.02)
CIE-LCHlch(17.77, 57.41, 305.02°)
OKLaboklab(30.56% 0.0298 -0.1355)
OKLCHoklch(30.56% 0.139 282.4)
XYZxyz(4.3265, 2.4681, 15.8680)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B71 #62711B
analogous
#1B3771 #2A1B71 #551B71
triadic
#2A1B71 #712A1B #1B712A
tetradic
#2A1B71 #711B37 #62711B #1B7155
square
#2A1B71 #711B37 #62711B #1B7155
split-complementary
#2A1B71 #71551B #37711B
monochromatic
#090619 #180F40 #2A1B71 #3C27A2 #5237CF

Accessibility & contrast

On white

14.06
#2A1B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1B71
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B71#FFFFFF#000000##FFFFFF
##2A1B711.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1b71;
/* rgb */ color: rgb(42, 27, 113);
/* oklch */ color: oklch(30.6% 0.139 282.4);
Tailwind
colors: {
  custom: {
    50: '#6d599b',
    500: '#2a1b71',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b71;
$custom-light: #6d599b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b71",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 250.465,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30556,
    "c": 0.13875,
    "h": 282.4
  },
  "luminance": 0.02468
}

Semantic roles & 50–950 ramp

primary
#2A1B71
secondary
#94A642
accent
#E543C8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2A1B71

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

Preview Lab → · Contrast checker → · Palette generator →

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