#2A1B97#2A1B97

#2A1B97 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.186 H 276.0°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#2A1B97
RGBrgb(42, 27, 151)
HSLhsl(247, 70%, 35%)
HSVhsv(247, 82%, 59%)
CMYKcmyk(72.2%, 82.1%, 0%, 40.8%)
CIE-LABlab(21.98, 45.19, -64.06)
CIE-LCHlch(21.98, 78.39, 305.20°)
OKLaboklab(34.75% 0.0195 -0.1852)
OKLCHoklch(34.75% 0.186 276)
XYZxyz(6.9309, 3.5098, 29.5844)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B97 #88971B
analogous
#1B4A97 #2A1B97 #681B97
triadic
#2A1B97 #972A1B #1B972A
tetradic
#2A1B97 #971B4A #88971B #1B9768
square
#2A1B97 #971B4A #88971B #1B9768
split-complementary
#2A1B97 #97681B #4A971B
monochromatic
#0D082F #1C1263 #2A1B97 #3824CB #5F4DDF

Accessibility & contrast

On white

12.34
#2A1B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2A1B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B97
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B97#FFFFFF#000000##FFFFFF
##2A1B971.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#002F95
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a1b97;
/* rgb */ color: rgb(42, 27, 151);
/* oklch */ color: oklch(34.8% 0.186 276.0);
Tailwind
colors: {
  custom: {
    50: '#765bb7',
    500: '#2a1b97',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b97;
$custom-light: #765bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b97",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 247.258,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34751,
    "c": 0.18619,
    "h": 276
  },
  "luminance": 0.0351
}

Semantic roles & 50–950 ramp

primary
#2A1B97
secondary
#B3C14C
accent
#EC3BD7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1B97

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

Preview Lab → · Contrast checker → · Palette generator →

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