#2A1BA1#2A1BA1

#2A1BA1 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.9% C 0.198 H 274.8°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#2A1BA1
RGBrgb(42, 27, 161)
HSLhsl(247, 71%, 37%)
HSVhsv(247, 83%, 63%)
CMYKcmyk(73.9%, 83.2%, 0%, 36.9%)
CIE-LABlab(23.16, 48.26, -68.22)
CIE-LCHlch(23.16, 83.57, 305.28°)
OKLaboklab(35.91% 0.0167 -0.1972)
OKLCHoklch(35.91% 0.198 274.8)
XYZxyz(7.7777, 3.8485, 34.0443)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1BA1 #92A11B
analogous
#1B4FA1 #2A1BA1 #6D1BA1
triadic
#2A1BA1 #A12A1B #1BA12A
tetradic
#2A1BA1 #A11B4F #92A11B #1BA16D
square
#2A1BA1 #A11B4F #92A11B #1BA16D
split-complementary
#2A1BA1 #A16D1B #4FA11B
monochromatic
#0F0938 #1C126D #2A1BA1 #3824D5 #6454E2

Accessibility & contrast

On white

11.87
#2A1BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2A1BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1BA1
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1BA1#FFFFFF#000000##FFFFFF
##2A1BA11.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1ba1;
/* rgb */ color: rgb(42, 27, 161);
/* oklch */ color: oklch(35.9% 0.198 274.8);
Tailwind
colors: {
  custom: {
    50: '#785cbe',
    500: '#2a1ba1',
    950: '#000000',
  },
}
SCSS
$custom: #2a1ba1;
$custom-light: #785cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1ba1",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 246.716,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35914,
    "c": 0.19794,
    "h": 274.8
  },
  "luminance": 0.03849
}

Semantic roles & 50–950 ramp

primary
#2A1BA1
secondary
#B8C552
accent
#EE3ADA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2A1BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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