#2A1CAC#2A1CAC

#2A1CAC is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.3% C 0.210 H 273.6°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#2A1CAC
RGBrgb(42, 28, 172)
HSLhsl(246, 72%, 39%)
HSVhsv(246, 84%, 67%)
CMYKcmyk(75.6%, 83.7%, 0%, 32.5%)
CIE-LABlab(24.64, 51.14, -72.43)
CIE-LCHlch(24.64, 88.67, 305.22°)
OKLaboklab(37.31% 0.0133 -0.2095)
OKLCHoklch(37.31% 0.21 273.6)
XYZxyz(8.8140, 4.3004, 39.3873)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1CAC #9EAC1C
analogous
#1C56AC #2A1CAC #721CAC
triadic
#2A1CAC #AC2A1C #1CAC2A
tetradic
#2A1CAC #AC1C56 #9EAC1C #1CAC72
square
#2A1CAC #AC1C56 #9EAC1C #1CAC72
split-complementary
#2A1CAC #AC721C #56AC1C
monochromatic
#100B43 #1D1377 #2A1CAC #3A29DC #6B5EE5

Accessibility & contrast

On white

11.29
#2A1CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2A1CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1CAC
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1CAC#FFFFFF#000000##FFFFFF
##2A1CAC1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041B0
Deuteranopia (green-blind)
#0034AA
Tritanopia (blue-blind)
#004B66
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a1cac;
/* rgb */ color: rgb(42, 28, 172);
/* oklch */ color: oklch(37.3% 0.210 273.6);
Tailwind
colors: {
  custom: {
    50: '#7b5ec6',
    500: '#2a1cac',
    950: '#000000',
  },
}
SCSS
$custom: #2a1cac;
$custom-light: #7b5ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1cac",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 172
  },
  "hsl": {
    "h": 245.833,
    "s": 72,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37314,
    "c": 0.2099,
    "h": 273.6
  },
  "luminance": 0.04301
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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