#2A1CA1#2A1CA1

#2A1CA1 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.0% C 0.197 H 274.8°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#2A1CA1
RGBrgb(42, 28, 161)
HSLhsl(246, 70%, 37%)
HSVhsv(246, 83%, 63%)
CMYKcmyk(73.9%, 82.6%, 0%, 36.9%)
CIE-LABlab(23.32, 47.80, -67.96)
CIE-LCHlch(23.32, 83.09, 305.12°)
OKLaboklab(36.02% 0.0163 -0.1965)
OKLCHoklch(36.02% 0.197 274.8)
XYZxyz(7.8010, 3.8952, 34.0520)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1CA1 #93A11C
analogous
#1C50A1 #2A1CA1 #6D1CA1
triadic
#2A1CA1 #A12A1C #1CA12A
tetradic
#2A1CA1 #A11C50 #93A11C #1CA16D
square
#2A1CA1 #A11C50 #93A11C #1CA16D
split-complementary
#2A1CA1 #A16D1C #50A11C
monochromatic
#0F0A39 #1C136D #2A1CA1 #3825D5 #6556E2

Accessibility & contrast

On white

11.80
#2A1CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2A1CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1CA1
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1CA1#FFFFFF#000000##FFFFFF
##2A1CA11.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA5
Deuteranopia (green-blind)
#00319F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a1ca1;
/* rgb */ color: rgb(42, 28, 161);
/* oklch */ color: oklch(36.0% 0.197 274.8);
Tailwind
colors: {
  custom: {
    50: '#785dbe',
    500: '#2a1ca1',
    950: '#000000',
  },
}
SCSS
$custom: #2a1ca1;
$custom-light: #785dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1ca1",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 161
  },
  "hsl": {
    "h": 246.316,
    "s": 70.37,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36023,
    "c": 0.19718,
    "h": 274.8
  },
  "luminance": 0.03896
}

Semantic roles & 50–950 ramp

primary
#2A1CA1
secondary
#B9C554
accent
#ED3BDA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2A1CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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