#2A1CAB#2A1CAB

#2A1CAB is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.2% C 0.209 H 273.7°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#2A1CAB
RGBrgb(42, 28, 171)
HSLhsl(246, 72%, 39%)
HSVhsv(246, 84%, 67%)
CMYKcmyk(75.4%, 83.6%, 0%, 32.9%)
CIE-LABlab(24.52, 50.84, -72.03)
CIE-LCHlch(24.52, 88.17, 305.21°)
OKLaboklab(37.2% 0.0136 -0.2083)
OKLCHoklch(37.2% 0.209 273.7)
XYZxyz(8.7183, 4.2621, 38.8834)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1CAB #9DAB1C
analogous
#1C56AB #2A1CAB #721CAB
triadic
#2A1CAB #AB2A1C #1CAB2A
tetradic
#2A1CAB #AB1C56 #9DAB1C #1CAB72
square
#2A1CAB #AB1C56 #9DAB1C #1CAB72
split-complementary
#2A1CAB #AB721C #56AB1C
monochromatic
#100B42 #1D1376 #2A1CAB #3A28DC #6A5DE4

Accessibility & contrast

On white

11.34
#2A1CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2A1CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1CAB
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1CAB#FFFFFF#000000##FFFFFF
##2A1CAB1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AF
Deuteranopia (green-blind)
#0033A9
Tritanopia (blue-blind)
#004A66
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a1cab;
/* rgb */ color: rgb(42, 28, 171);
/* oklch */ color: oklch(37.2% 0.209 273.7);
Tailwind
colors: {
  custom: {
    50: '#7a5ec5',
    500: '#2a1cab',
    950: '#000000',
  },
}
SCSS
$custom: #2a1cab;
$custom-light: #7a5ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1cab",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 171
  },
  "hsl": {
    "h": 245.874,
    "s": 71.859,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37196,
    "c": 0.20875,
    "h": 273.7
  },
  "luminance": 0.04263
}

Semantic roles & 50–950 ramp

primary
#2A1CAB
secondary
#BEC95A
accent
#EF39DD
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A1CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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