#2A1BA7#2A1BA7

#2A1BA7 is a dark, highly saturated blue. Relative luminance 0.041; OKLCH L 36.6% C 0.205 H 274.2°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#2A1BA7
RGBrgb(42, 27, 167)
HSLhsl(246, 72%, 38%)
HSVhsv(246, 84%, 65%)
CMYKcmyk(74.9%, 83.8%, 0%, 34.5%)
CIE-LABlab(23.89, 50.08, -70.67)
CIE-LCHlch(23.89, 86.61, 305.32°)
OKLaboklab(36.62% 0.015 -0.2043)
OKLCHoklch(36.62% 0.205 274.2)
XYZxyz(8.3195, 4.0653, 36.8979)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1BA7 #98A71B
analogous
#1B52A7 #2A1BA7 #701BA7
triadic
#2A1BA7 #A72A1B #1BA72A
tetradic
#2A1BA7 #A71B52 #98A71B #1BA770
square
#2A1BA7 #A71B52 #98A71B #1BA770
split-complementary
#2A1BA7 #A7701B #52A71B
monochromatic
#100A3E #1D1272 #2A1BA7 #3724DC #6758E4

Accessibility & contrast

On white

11.58
#2A1BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A1BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1BA7
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1BA7#FFFFFF#000000##FFFFFF
##2A1BA71.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1ba7;
/* rgb */ color: rgb(42, 27, 167);
/* oklch */ color: oklch(36.6% 0.205 274.2);
Tailwind
colors: {
  custom: {
    50: '#7a5dc3',
    500: '#2a1ba7',
    950: '#000000',
  },
}
SCSS
$custom: #2a1ba7;
$custom-light: #7a5dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1ba7",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 167
  },
  "hsl": {
    "h": 246.429,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.3662,
    "c": 0.20489,
    "h": 274.2
  },
  "luminance": 0.04066
}

Semantic roles & 50–950 ramp

primary
#2A1BA7
secondary
#BBC856
accent
#EF39DB
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #2A1BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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