#2A1EA1#2A1EA1

#2A1EA1 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.196 H 274.6°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#2A1EA1
RGBrgb(42, 30, 161)
HSLhsl(245, 69%, 37%)
HSVhsv(245, 81%, 63%)
CMYKcmyk(73.9%, 81.4%, 0%, 36.9%)
CIE-LABlab(23.65, 46.84, -67.42)
CIE-LCHlch(23.65, 82.09, 304.79°)
OKLaboklab(36.25% 0.0156 -0.195)
OKLCHoklch(36.25% 0.196 274.6)
XYZxyz(7.8500, 3.9932, 34.0684)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1EA1 #95A11E
analogous
#1E54A1 #2A1EA1 #6B1EA1
triadic
#2A1EA1 #A12A1E #1EA12A
tetradic
#2A1EA1 #A11E54 #95A11E #1EA16B
square
#2A1EA1 #A11E54 #95A11E #1EA16B
split-complementary
#2A1EA1 #A16B1E #54A11E
monochromatic
#0F0B3A #1D146D #2A1EA1 #3728D5 #6659E0

Accessibility & contrast

On white

11.67
#2A1EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2A1EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1EA1
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1EA1#FFFFFF#000000##FFFFFF
##2A1EA11.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00329F
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a1ea1;
/* rgb */ color: rgb(42, 30, 161);
/* oklch */ color: oklch(36.3% 0.196 274.6);
Tailwind
colors: {
  custom: {
    50: '#785ebe',
    500: '#2a1ea1',
    950: '#000000',
  },
}
SCSS
$custom: #2a1ea1;
$custom-light: #785ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1ea1",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 245.496,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3625,
    "c": 0.19558,
    "h": 274.6
  },
  "luminance": 0.03994
}

Semantic roles & 50–950 ramp

primary
#2A1EA1
secondary
#BAC457
accent
#EB3CDB
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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