#2A1B73#2A1B73

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

Color values

HEX#2A1B73
RGBrgb(42, 27, 115)
HSLhsl(250, 62%, 28%)
HSVhsv(250, 77%, 45%)
CMYKcmyk(63.5%, 76.5%, 0%, 54.9%)
CIE-LABlab(17.98, 33.61, -47.97)
CIE-LCHlch(17.98, 58.58, 305.02°)
OKLaboklab(30.76% 0.0293 -0.1383)
OKLCHoklch(30.76% 0.141 282)
XYZxyz(4.4403, 2.5136, 16.4675)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B73 #64731B
analogous
#1B3873 #2A1B73 #561B73
triadic
#2A1B73 #732A1B #1B732A
tetradic
#2A1B73 #731B38 #64731B #1B7356
square
#2A1B73 #731B38 #64731B #1B7356
split-complementary
#2A1B73 #73561B #38731B
monochromatic
#090619 #180F41 #2A1B73 #3C27A5 #5238D0

Accessibility & contrast

On white

13.97
#2A1B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2A1B73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B73
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B73#FFFFFF#000000##FFFFFF
##2A1B731.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F76
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a1b73;
/* rgb */ color: rgb(42, 27, 115);
/* oklch */ color: oklch(30.8% 0.141 282.0);
Tailwind
colors: {
  custom: {
    50: '#6e599c',
    500: '#2a1b73',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b73;
$custom-light: #6e599c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b73",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 115
  },
  "hsl": {
    "h": 250.227,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30765,
    "c": 0.14138,
    "h": 282
  },
  "luminance": 0.02514
}

Semantic roles & 50–950 ramp

primary
#2A1B73
secondary
#96A842
accent
#E543C9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2A1B73

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

Preview Lab → · Contrast checker → · Palette generator →

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