#2A1CB4#2A1CB4

#2A1CB4 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.3% C 0.219 H 272.9°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#2A1CB4
RGBrgb(42, 28, 180)
HSLhsl(246, 73%, 41%)
HSVhsv(246, 84%, 71%)
CMYKcmyk(76.7%, 84.4%, 0%, 29.4%)
CIE-LABlab(25.61, 53.52, -75.62)
CIE-LCHlch(25.61, 92.64, 305.29°)
OKLaboklab(38.26% 0.0111 -0.2187)
OKLCHoklch(38.26% 0.219 272.9)
XYZxyz(9.6056, 4.6170, 43.5561)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1CB4 #A6B41C
analogous
#1C5AB4 #2A1CB4 #761CB4
triadic
#2A1CB4 #B42A1C #1CB42A
tetradic
#2A1CB4 #B41C5A #A6B41C #1CB476
square
#2A1CB4 #B41C5A #A6B41C #1CB476
split-complementary
#2A1CB4 #B4761C #5AB41C
monochromatic
#110C4A #1E147F #2A1CB4 #3F2FDF #7064E7

Accessibility & contrast

On white

10.92
#2A1CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2A1CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1CB4
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1CB4#FFFFFF#000000##FFFFFF
##2A1CB41.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B8
Deuteranopia (green-blind)
#0035B2
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a1cb4;
/* rgb */ color: rgb(42, 28, 180);
/* oklch */ color: oklch(38.3% 0.219 272.9);
Tailwind
colors: {
  custom: {
    50: '#7d5ecc',
    500: '#2a1cb4',
    950: '#000000',
  },
}
SCSS
$custom: #2a1cb4;
$custom-light: #7d5ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1cb4",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 180
  },
  "hsl": {
    "h": 245.526,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38263,
    "c": 0.21897,
    "h": 272.9
  },
  "luminance": 0.04618
}

Semantic roles & 50–950 ramp

primary
#2A1CB4
secondary
#C2CC60
accent
#F038DF
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2A1CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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