#2A1BAA#2A1BAA

#2A1BAA is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.0% C 0.208 H 273.9°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#2A1BAA
RGBrgb(42, 27, 170)
HSLhsl(246, 73%, 39%)
HSVhsv(246, 84%, 67%)
CMYKcmyk(75.3%, 84.1%, 0%, 33.3%)
CIE-LABlab(24.25, 50.98, -71.88)
CIE-LCHlch(24.25, 88.12, 305.35°)
OKLaboklab(36.98% 0.0142 -0.2078)
OKLCHoklch(36.98% 0.208 273.9)
XYZxyz(8.6001, 4.1775, 38.3755)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1BAA #9BAA1B
analogous
#1B53AA #2A1BAA #711BAA
triadic
#2A1BAA #AA2A1B #1BAA2A
tetradic
#2A1BAA #AA1B53 #9BAA1B #1BAA71
square
#2A1BAA #AA1B53 #9BAA1B #1BAA71
split-complementary
#2A1BAA #AA711B #53AA1B
monochromatic
#100A40 #1D1375 #2A1BAA #3926DC #695BE5

Accessibility & contrast

On white

11.44
#2A1BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2A1BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1BAA
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1BAA#FFFFFF#000000##FFFFFF
##2A1BAA1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AE
Deuteranopia (green-blind)
#0033A8
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a1baa;
/* rgb */ color: rgb(42, 27, 170);
/* oklch */ color: oklch(37.0% 0.208 273.9);
Tailwind
colors: {
  custom: {
    50: '#7a5dc5',
    500: '#2a1baa',
    950: '#000000',
  },
}
SCSS
$custom: #2a1baa;
$custom-light: #7a5dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1baa",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 170
  },
  "hsl": {
    "h": 246.294,
    "s": 72.589,
    "l": 38.627
  },
  "oklch": {
    "l": 0.36975,
    "c": 0.20832,
    "h": 273.9
  },
  "luminance": 0.04178
}

Semantic roles & 50–950 ramp

primary
#2A1BAA
secondary
#BDC958
accent
#EF39DC
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #2A1BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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