#2A1B8D#2A1B8D

#2A1B8D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.174 H 277.4°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#2A1B8D
RGBrgb(42, 27, 141)
HSLhsl(248, 68%, 33%)
HSVhsv(248, 81%, 55%)
CMYKcmyk(70.2%, 80.9%, 0%, 44.7%)
CIE-LABlab(20.82, 42.05, -59.77)
CIE-LCHlch(20.82, 73.08, 305.12°)
OKLaboklab(33.61% 0.0224 -0.1727)
OKLCHoklch(33.61% 0.174 277.4)
XYZxyz(6.1529, 3.1986, 25.4873)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B8D #7E8D1B
analogous
#1B458D #2A1B8D #631B8D
triadic
#2A1B8D #8D2A1B #1B8D2A
tetradic
#2A1B8D #8D1B45 #7E8D1B #1B8D63
square
#2A1B8D #8D1B45 #7E8D1B #1B8D63
split-complementary
#2A1B8D #8D631B #458D1B
monochromatic
#0B0726 #1B115A #2A1B8D #3925C0 #5A47DC

Accessibility & contrast

On white

12.81
#2A1B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2A1B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B8D
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B8D#FFFFFF#000000##FFFFFF
##2A1B8D1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a1b8d;
/* rgb */ color: rgb(42, 27, 141);
/* oklch */ color: oklch(33.6% 0.174 277.4);
Tailwind
colors: {
  custom: {
    50: '#735bb0',
    500: '#2a1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b8d;
$custom-light: #735bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b8d",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 247.895,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33608,
    "c": 0.17415,
    "h": 277.4
  },
  "luminance": 0.03199
}

Semantic roles & 50–950 ramp

primary
#2A1B8D
secondary
#AEBD46
accent
#EB3DD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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