#2A1B84#2A1B84

#2A1B84 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.163 H 278.8°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#2A1B84
RGBrgb(42, 27, 132)
HSLhsl(249, 66%, 31%)
HSVhsv(249, 80%, 52%)
CMYKcmyk(68.2%, 79.5%, 0%, 48.2%)
CIE-LABlab(19.81, 39.17, -55.80)
CIE-LCHlch(19.81, 68.18, 305.07°)
OKLaboklab(32.6% 0.0249 -0.1612)
OKLCHoklch(32.6% 0.163 278.8)
XYZxyz(5.5103, 2.9416, 22.1027)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B84 #75841B
analogous
#1B4084 #2A1B84 #5E1B84
triadic
#2A1B84 #842A1B #1B842A
tetradic
#2A1B84 #841B40 #75841B #1B845E
square
#2A1B84 #841B40 #75841B #1B845E
split-complementary
#2A1B84 #845E1B #40841B
monochromatic
#0A061E #1A1151 #2A1B84 #3A25B7 #5741D8

Accessibility & contrast

On white

13.22
#2A1B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2A1B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B84
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B84#FFFFFF#000000##FFFFFF
##2A1B841.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a1b84;
/* rgb */ color: rgb(42, 27, 132);
/* oklch */ color: oklch(32.6% 0.163 278.8);
Tailwind
colors: {
  custom: {
    50: '#715aa9',
    500: '#2a1b84',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b84;
$custom-light: #715aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b84",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 248.571,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.326,
    "c": 0.16307,
    "h": 278.8
  },
  "luminance": 0.02942
}

Semantic roles & 50–950 ramp

primary
#2A1B84
secondary
#A7B743
accent
#E93FD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1B84

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

Preview Lab → · Contrast checker → · Palette generator →

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