#2A1CA7#2A1CA7

#2A1CA7 is a dark, highly saturated blue. Relative luminance 0.041; OKLCH L 36.7% C 0.204 H 274.1°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#2A1CA7
RGBrgb(42, 28, 167)
HSLhsl(246, 71%, 38%)
HSVhsv(246, 83%, 65%)
CMYKcmyk(74.9%, 83.2%, 0%, 34.5%)
CIE-LABlab(24.04, 49.63, -70.42)
CIE-LCHlch(24.04, 86.15, 305.18°)
OKLaboklab(36.73% 0.0147 -0.2036)
OKLCHoklch(36.73% 0.204 274.1)
XYZxyz(8.3428, 4.1119, 36.9057)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1CA7 #99A71C
analogous
#1C53A7 #2A1CA7 #6F1CA7
triadic
#2A1CA7 #A72A1C #1CA72A
tetradic
#2A1CA7 #A71C53 #99A71C #1CA76F
square
#2A1CA7 #A71C53 #99A71C #1CA76F
split-complementary
#2A1CA7 #A76F1C #53A71C
monochromatic
#100A3E #1D1373 #2A1CA7 #3826DB #685AE3

Accessibility & contrast

On white

11.52
#2A1CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2A1CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1CA7
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1CA7#FFFFFF#000000##FFFFFF
##2A1CA71.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAB
Deuteranopia (green-blind)
#0033A5
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a1ca7;
/* rgb */ color: rgb(42, 28, 167);
/* oklch */ color: oklch(36.7% 0.204 274.1);
Tailwind
colors: {
  custom: {
    50: '#7a5dc3',
    500: '#2a1ca7',
    950: '#000000',
  },
}
SCSS
$custom: #2a1ca7;
$custom-light: #7a5dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1ca7",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 167
  },
  "hsl": {
    "h": 246.043,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36725,
    "c": 0.20416,
    "h": 274.1
  },
  "luminance": 0.04113
}

Semantic roles & 50–950 ramp

primary
#2A1CA7
secondary
#BCC758
accent
#EE3ADC
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #2A1CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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