#2A1B7A#2A1B7A

#2A1B7A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.150 H 280.6°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#2A1B7A
RGBrgb(42, 27, 122)
HSLhsl(249, 64%, 29%)
HSVhsv(249, 78%, 48%)
CMYKcmyk(65.6%, 77.9%, 0%, 52.2%)
CIE-LABlab(18.72, 35.92, -51.25)
CIE-LCHlch(18.72, 62.59, 305.02°)
OKLaboklab(31.51% 0.0276 -0.1479)
OKLCHoklch(31.51% 0.15 280.6)
XYZxyz(4.8585, 2.6809, 18.6700)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B7A #6B7A1B
analogous
#1B3C7A #2A1B7A #5A1B7A
triadic
#2A1B7A #7A2A1B #1B7A2A
tetradic
#2A1B7A #7A1B3C #6B7A1B #1B7A5A
square
#2A1B7A #7A1B3C #6B7A1B #1B7A5A
split-complementary
#2A1B7A #7A5A1B #3C7A1B
monochromatic
#090619 #191048 #2A1B7A #3B26AC #543CD4

Accessibility & contrast

On white

13.67
#2A1B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2A1B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B7A
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B7A#FFFFFF#000000##FFFFFF
##2A1B7A1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a1b7a;
/* rgb */ color: rgb(42, 27, 122);
/* oklch */ color: oklch(31.5% 0.150 280.6);
Tailwind
colors: {
  custom: {
    50: '#6f5aa1',
    500: '#2a1b7a',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b7a;
$custom-light: #6f5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b7a",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 249.474,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31508,
    "c": 0.15043,
    "h": 280.6
  },
  "luminance": 0.02681
}

Semantic roles & 50–950 ramp

primary
#2A1B7A
secondary
#9DAE43
accent
#E741CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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