#2A1BB0#2A1BB0

#2A1BB0 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.7% C 0.215 H 273.3°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#2A1BB0
RGBrgb(42, 27, 176)
HSLhsl(246, 73%, 40%)
HSVhsv(246, 85%, 69%)
CMYKcmyk(76.1%, 84.7%, 0%, 31%)
CIE-LABlab(24.98, 52.76, -74.27)
CIE-LCHlch(24.98, 91.11, 305.39°)
OKLaboklab(37.69% 0.0125 -0.2148)
OKLCHoklch(37.69% 0.215 273.3)
XYZxyz(9.1806, 4.4097, 41.4332)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1BB0 #A1B01B
analogous
#1B57B0 #2A1BB0 #741BB0
triadic
#2A1BB0 #B02A1B #1BB02A
tetradic
#2A1BB0 #B01B57 #A1B01B #1BB074
square
#2A1BB0 #B01B57 #A1B01B #1BB074
split-complementary
#2A1BB0 #B0741B #57B01B
monochromatic
#110B46 #1D137B #2A1BB0 #3C2ADE #6D5FE6

Accessibility & contrast

On white

11.16
#2A1BB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2A1BB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1BB0
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1BB0#FFFFFF#000000##FFFFFF
##2A1BB01.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B4
Deuteranopia (green-blind)
#0034AE
Tritanopia (blue-blind)
#004C68
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a1bb0;
/* rgb */ color: rgb(42, 27, 176);
/* oklch */ color: oklch(37.7% 0.215 273.3);
Tailwind
colors: {
  custom: {
    50: '#7c5dc9',
    500: '#2a1bb0',
    950: '#000000',
  },
}
SCSS
$custom: #2a1bb0;
$custom-light: #7c5dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1bb0",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 176
  },
  "hsl": {
    "h": 246.04,
    "s": 73.399,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37689,
    "c": 0.21514,
    "h": 273.3
  },
  "luminance": 0.04411
}

Semantic roles & 50–950 ramp

primary
#2A1BB0
secondary
#C0CB5C
accent
#F038DE
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A1BB0

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

Preview Lab → · Contrast checker → · Palette generator →

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