#2A1B96#2A1B96

#2A1B96 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.185 H 276.2°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#2A1B96
RGBrgb(42, 27, 150)
HSLhsl(247, 69%, 35%)
HSVhsv(247, 82%, 59%)
CMYKcmyk(72%, 82%, 0%, 41.2%)
CIE-LABlab(21.86, 44.87, -63.63)
CIE-LCHlch(21.86, 77.86, 305.19°)
OKLaboklab(34.64% 0.0198 -0.1839)
OKLCHoklch(34.64% 0.185 276.2)
XYZxyz(6.8500, 3.4775, 29.1585)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B96 #87961B
analogous
#1B4A96 #2A1B96 #681B96
triadic
#2A1B96 #962A1B #1B962A
tetradic
#2A1B96 #961B4A #87961B #1B9668
square
#2A1B96 #961B4A #87961B #1B9668
split-complementary
#2A1B96 #96681B #4A961B
monochromatic
#0D082E #1B1262 #2A1B96 #3924CA #5E4DDF

Accessibility & contrast

On white

12.38
#2A1B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2A1B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B96
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B96#FFFFFF#000000##FFFFFF
##2A1B961.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003999
Deuteranopia (green-blind)
#002F94
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a1b96;
/* rgb */ color: rgb(42, 27, 150);
/* oklch */ color: oklch(34.6% 0.185 276.2);
Tailwind
colors: {
  custom: {
    50: '#765bb6',
    500: '#2a1b96',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b96;
$custom-light: #765bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b96",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 247.317,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34636,
    "c": 0.18499,
    "h": 276.2
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

primary
#2A1B96
secondary
#B3C14C
accent
#EC3BD7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1B96

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

Preview Lab → · Contrast checker → · Palette generator →

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