#2A1AB4#2A1AB4

#2A1AB4 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 38.1% C 0.220 H 273.0°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#2A1AB4
RGBrgb(42, 26, 180)
HSLhsl(246, 75%, 40%)
HSVhsv(246, 86%, 71%)
CMYKcmyk(76.7%, 85.6%, 0%, 29.4%)
CIE-LABlab(25.34, 54.35, -76.08)
CIE-LCHlch(25.34, 93.50, 305.54°)
OKLaboklab(38.07% 0.0116 -0.22)
OKLCHoklch(38.07% 0.22 273)
XYZxyz(9.5597, 4.5253, 43.5408)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1AB4 #A4B41A
analogous
#1A57B4 #2A1AB4 #771AB4
triadic
#2A1AB4 #B42A1A #1AB42A
tetradic
#2A1AB4 #B41A57 #A4B41A #1AB477
square
#2A1AB4 #B41A57 #A4B41A #1AB477
split-complementary
#2A1AB4 #B4771A #57B41A
monochromatic
#110B49 #1E127F #2A1AB4 #3E2BE0 #6E60E8

Accessibility & contrast

On white

11.02
#2A1AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2A1AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1AB4
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1AB4#FFFFFF#000000##FFFFFF
##2A1AB41.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B8
Deuteranopia (green-blind)
#0035B1
Tritanopia (blue-blind)
#004D6B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a1ab4;
/* rgb */ color: rgb(42, 26, 180);
/* oklch */ color: oklch(38.1% 0.220 273.0);
Tailwind
colors: {
  custom: {
    50: '#7d5dcc',
    500: '#2a1ab4',
    950: '#000000',
  },
}
SCSS
$custom: #2a1ab4;
$custom-light: #7d5dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1ab4",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 246.234,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38073,
    "c": 0.22029,
    "h": 273
  },
  "luminance": 0.04526
}

Semantic roles & 50–950 ramp

primary
#2A1AB4
secondary
#C1CC5D
accent
#F136DE
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2A1AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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