#2A1C8D#2A1C8D

#2A1C8D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.173 H 277.3°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#2A1C8D
RGBrgb(42, 28, 141)
HSLhsl(247, 67%, 33%)
HSVhsv(247, 80%, 55%)
CMYKcmyk(70.2%, 80.1%, 0%, 44.7%)
CIE-LABlab(21.00, 41.53, -59.48)
CIE-LCHlch(21.00, 72.54, 304.93°)
OKLaboklab(33.73% 0.0219 -0.1719)
OKLCHoklch(33.73% 0.173 277.3)
XYZxyz(6.1763, 3.2453, 25.4951)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C8D #7F8D1C
analogous
#1C468D #2A1C8D #621C8D
triadic
#2A1C8D #8D2A1C #1C8D2A
tetradic
#2A1C8D #8D1C46 #7F8D1C #1C8D62
square
#2A1C8D #8D1C46 #7F8D1C #1C8D62
split-complementary
#2A1C8D #8D621C #468D1C
monochromatic
#0C0827 #1B125A #2A1C8D #3926C0 #5B49DB

Accessibility & contrast

On white

12.73
#2A1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2A1C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1C8D
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C8D#FFFFFF#000000##FFFFFF
##2A1C8D1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1c8d;
/* rgb */ color: rgb(42, 28, 141);
/* oklch */ color: oklch(33.7% 0.173 277.3);
Tailwind
colors: {
  custom: {
    50: '#735bb0',
    500: '#2a1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c8d;
$custom-light: #735bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c8d",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 247.434,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33732,
    "c": 0.17326,
    "h": 277.3
  },
  "luminance": 0.03246
}

Semantic roles & 50–950 ramp

primary
#2A1C8D
secondary
#AEBD48
accent
#EA3ED4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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