#2A1B9B#2A1B9B

#2A1B9B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.2% C 0.191 H 275.5°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#2A1B9B
RGBrgb(42, 27, 155)
HSLhsl(247, 70%, 36%)
HSVhsv(247, 83%, 61%)
CMYKcmyk(72.9%, 82.6%, 0%, 39.2%)
CIE-LABlab(22.45, 46.42, -65.73)
CIE-LCHlch(22.45, 80.47, 305.23°)
OKLaboklab(35.21% 0.0184 -0.19)
OKLCHoklch(35.21% 0.191 275.5)
XYZxyz(7.2612, 3.6420, 31.3243)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B9B #8C9B1B
analogous
#1B4C9B #2A1B9B #6A1B9B
triadic
#2A1B9B #9B2A1B #1B9B2A
tetradic
#2A1B9B #9B1B4C #8C9B1B #1B9B6A
square
#2A1B9B #9B1B4C #8C9B1B #1B9B6A
split-complementary
#2A1B9B #9B6A1B #4C9B1B
monochromatic
#0E0933 #1C1267 #2A1B9B #3824CF #6150E0

Accessibility & contrast

On white

12.15
#2A1B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A1B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B9B
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B9B#FFFFFF#000000##FFFFFF
##2A1B9B1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9E
Deuteranopia (green-blind)
#003099
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a1b9b;
/* rgb */ color: rgb(42, 27, 155);
/* oklch */ color: oklch(35.2% 0.191 275.5);
Tailwind
colors: {
  custom: {
    50: '#775cba',
    500: '#2a1b9b',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b9b;
$custom-light: #775cba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b9b",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 155
  },
  "hsl": {
    "h": 247.031,
    "s": 70.33,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35214,
    "c": 0.19092,
    "h": 275.5
  },
  "luminance": 0.03643
}

Semantic roles & 50–950 ramp

primary
#2A1B9B
secondary
#B5C34F
accent
#ED3BD8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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