#2A1D8B#2A1D8B

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

Color values

HEX#2A1D8B
RGBrgb(42, 29, 139)
HSLhsl(247, 65%, 33%)
HSVhsv(247, 79%, 55%)
CMYKcmyk(69.8%, 79.1%, 0%, 45.5%)
CIE-LABlab(20.96, 40.36, -58.30)
CIE-LCHlch(20.96, 70.90, 304.70°)
OKLaboklab(33.64% 0.0219 -0.1684)
OKLCHoklch(33.64% 0.17 277.4)
XYZxyz(6.0529, 3.2345, 24.7264)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D8B #7E8B1D
analogous
#1D478B #2A1D8B #611D8B
triadic
#2A1D8B #8B2A1D #1D8B2A
tetradic
#2A1D8B #8B1D47 #7E8B1D #1D8B61
square
#2A1D8B #8B1D47 #7E8B1D #1D8B61
split-complementary
#2A1D8B #8B611D #478B1D
monochromatic
#0B0826 #1B1258 #2A1D8B #3928BE #5A49D9

Accessibility & contrast

On white

12.75
#2A1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1D8B
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D8B#FFFFFF#000000##FFFFFF
##2A1D8B1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a1d8b;
/* rgb */ color: rgb(42, 29, 139);
/* oklch */ color: oklch(33.6% 0.170 277.4);
Tailwind
colors: {
  custom: {
    50: '#735cae',
    500: '#2a1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d8b;
$custom-light: #735cae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d8b",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 247.091,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33637,
    "c": 0.16986,
    "h": 277.4
  },
  "luminance": 0.03235
}

Semantic roles & 50–950 ramp

primary
#2A1D8B
secondary
#AEBB49
accent
#E83FD4
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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