#2A1B8A#2A1B8A

#2A1B8A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.170 H 277.8°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#2A1B8A
RGBrgb(42, 27, 138)
HSLhsl(248, 67%, 32%)
HSVhsv(248, 80%, 54%)
CMYKcmyk(69.6%, 80.4%, 0%, 45.9%)
CIE-LABlab(20.48, 41.09, -58.46)
CIE-LCHlch(20.48, 71.46, 305.10°)
OKLaboklab(33.27% 0.0232 -0.1689)
OKLCHoklch(33.27% 0.17 277.8)
XYZxyz(5.9327, 3.1106, 24.3276)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B8A #7B8A1B
analogous
#1B448A #2A1B8A #621B8A
triadic
#2A1B8A #8A2A1B #1B8A2A
tetradic
#2A1B8A #8A1B44 #7B8A1B #1B8A62
square
#2A1B8A #8A1B44 #7B8A1B #1B8A62
split-complementary
#2A1B8A #8A621B #448A1B
monochromatic
#0B0724 #1A1157 #2A1B8A #3A25BD #5945DB

Accessibility & contrast

On white

12.95
#2A1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2A1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B8A
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B8A#FFFFFF#000000##FFFFFF
##2A1B8A1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a1b8a;
/* rgb */ color: rgb(42, 27, 138);
/* oklch */ color: oklch(33.3% 0.170 277.8);
Tailwind
colors: {
  custom: {
    50: '#735bad',
    500: '#2a1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b8a;
$custom-light: #735bad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b8a",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 248.108,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33269,
    "c": 0.17049,
    "h": 277.8
  },
  "luminance": 0.03111
}

Semantic roles & 50–950 ramp

primary
#2A1B8A
secondary
#ACBC45
accent
#EA3ED3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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