#2A1C8B#2A1C8B

#2A1C8B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.171 H 277.5°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#2A1C8B
RGBrgb(42, 28, 139)
HSLhsl(248, 66%, 33%)
HSVhsv(248, 80%, 55%)
CMYKcmyk(69.8%, 79.9%, 0%, 45.5%)
CIE-LABlab(20.78, 40.89, -58.60)
CIE-LCHlch(20.78, 71.46, 304.91°)
OKLaboklab(33.51% 0.0224 -0.1693)
OKLCHoklch(33.51% 0.171 277.5)
XYZxyz(6.0288, 3.1863, 24.7184)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C8B #7D8B1C
analogous
#1C458B #2A1C8B #621C8B
triadic
#2A1C8B #8B2A1C #1C8B2A
tetradic
#2A1C8B #8B1C45 #7D8B1C #1C8B62
square
#2A1C8B #8B1C45 #7D8B1C #1C8B62
split-complementary
#2A1C8B #8B621C #458B1C
monochromatic
#0B0725 #1B1258 #2A1C8B #3926BE #5A47DA

Accessibility & contrast

On white

12.83
#2A1C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1C8B
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C8B#FFFFFF#000000##FFFFFF
##2A1C8B1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a1c8b;
/* rgb */ color: rgb(42, 28, 139);
/* oklch */ color: oklch(33.5% 0.171 277.5);
Tailwind
colors: {
  custom: {
    50: '#735bae',
    500: '#2a1c8b',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c8b;
$custom-light: #735bae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c8b",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 247.568,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33508,
    "c": 0.1708,
    "h": 277.5
  },
  "luminance": 0.03187
}

Semantic roles & 50–950 ramp

primary
#2A1C8B
secondary
#ADBC47
accent
#E93ED4
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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