#2A1B72#2A1B72

#2A1B72 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.140 H 282.2°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#2A1B72
RGBrgb(42, 27, 114)
HSLhsl(250, 62%, 28%)
HSVhsv(250, 76%, 45%)
CMYKcmyk(63.2%, 76.3%, 0%, 55.3%)
CIE-LABlab(17.88, 33.28, -47.50)
CIE-LCHlch(17.88, 58.00, 305.02°)
OKLaboklab(30.66% 0.0295 -0.1369)
OKLCHoklch(30.66% 0.14 282.2)
XYZxyz(4.3831, 2.4907, 16.1661)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B72 #63721B
analogous
#1B3772 #2A1B72 #561B72
triadic
#2A1B72 #722A1B #1B722A
tetradic
#2A1B72 #721B37 #63721B #1B7256
square
#2A1B72 #721B37 #63721B #1B7256
split-complementary
#2A1B72 #72561B #37721B
monochromatic
#090619 #180F41 #2A1B72 #3C27A3 #5238D0

Accessibility & contrast

On white

14.02
#2A1B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1B72
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B72#FFFFFF#000000##FFFFFF
##2A1B721.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1b72;
/* rgb */ color: rgb(42, 27, 114);
/* oklch */ color: oklch(30.7% 0.140 282.2);
Tailwind
colors: {
  custom: {
    50: '#6d599b',
    500: '#2a1b72',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b72;
$custom-light: #6d599b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b72",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 250.345,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30661,
    "c": 0.14007,
    "h": 282.2
  },
  "luminance": 0.02491
}

Semantic roles & 50–950 ramp

primary
#2A1B72
secondary
#95A742
accent
#E543C9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2A1B72

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

Preview Lab → · Contrast checker → · Palette generator →

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