#2A1AA1#2A1AA1

#2A1AA1 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.8% C 0.199 H 274.9°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#2A1AA1
RGBrgb(42, 26, 161)
HSLhsl(247, 72%, 37%)
HSVhsv(247, 84%, 63%)
CMYKcmyk(73.9%, 83.9%, 0%, 36.9%)
CIE-LABlab(23.01, 48.71, -68.47)
CIE-LCHlch(23.01, 84.03, 305.43°)
OKLaboklab(35.81% 0.017 -0.198)
OKLCHoklch(35.81% 0.199 274.9)
XYZxyz(7.7551, 3.8035, 34.0367)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1AA1 #91A11A
analogous
#1A4EA1 #2A1AA1 #6E1AA1
triadic
#2A1AA1 #A12A1A #1AA12A
tetradic
#2A1AA1 #A11A4E #91A11A #1AA16E
square
#2A1AA1 #A11A4E #91A11A #1AA16E
split-complementary
#2A1AA1 #A16E1A #4EA11A
monochromatic
#0F0938 #1C116C #2A1AA1 #3823D6 #6352E3

Accessibility & contrast

On white

11.93
#2A1AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2A1AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1AA1
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1AA1#FFFFFF#000000##FFFFFF
##2A1AA11.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1aa1;
/* rgb */ color: rgb(42, 26, 161);
/* oklch */ color: oklch(35.8% 0.199 274.9);
Tailwind
colors: {
  custom: {
    50: '#785cbe',
    500: '#2a1aa1',
    950: '#000000',
  },
}
SCSS
$custom: #2a1aa1;
$custom-light: #785cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1aa1",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 247.111,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35808,
    "c": 0.19869,
    "h": 274.9
  },
  "luminance": 0.03804
}

Semantic roles & 50–950 ramp

primary
#2A1AA1
secondary
#B8C651
accent
#EF39D9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2A1AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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