#2A1BA0#2A1BA0

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

Color values

HEX#2A1BA0
RGBrgb(42, 27, 160)
HSLhsl(247, 71%, 37%)
HSVhsv(247, 83%, 63%)
CMYKcmyk(73.8%, 83.1%, 0%, 37.3%)
CIE-LABlab(23.04, 47.96, -67.81)
CIE-LCHlch(23.04, 83.05, 305.27°)
OKLaboklab(35.8% 0.017 -0.196)
OKLCHoklch(35.8% 0.197 274.9)
XYZxyz(7.6898, 3.8134, 33.5817)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1BA0 #91A01B
analogous
#1B4FA0 #2A1BA0 #6D1BA0
triadic
#2A1BA0 #A02A1B #1BA02A
tetradic
#2A1BA0 #A01B4F #91A01B #1BA06D
square
#2A1BA0 #A01B4F #91A01B #1BA06D
split-complementary
#2A1BA0 #A06D1B #4FA01B
monochromatic
#0F0937 #1C126C #2A1BA0 #3824D4 #6353E2

Accessibility & contrast

On white

11.91
#2A1BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1BA0
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1BA0#FFFFFF#000000##FFFFFF
##2A1BA01.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA4
Deuteranopia (green-blind)
#00319E
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a1ba0;
/* rgb */ color: rgb(42, 27, 160);
/* oklch */ color: oklch(35.8% 0.197 274.9);
Tailwind
colors: {
  custom: {
    50: '#785cbd',
    500: '#2a1ba0',
    950: '#000000',
  },
}
SCSS
$custom: #2a1ba0;
$custom-light: #785cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1ba0",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 160
  },
  "hsl": {
    "h": 246.767,
    "s": 71.123,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35797,
    "c": 0.19678,
    "h": 274.9
  },
  "luminance": 0.03814
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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