#2B1A84#2B1A84

#2B1A84 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.164 H 279.5°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#2B1A84
RGBrgb(43, 26, 132)
HSLhsl(250, 67%, 31%)
HSVhsv(250, 80%, 52%)
CMYKcmyk(67.4%, 80.3%, 0%, 48.2%)
CIE-LABlab(19.71, 39.81, -55.96)
CIE-LCHlch(19.71, 68.67, 305.43°)
OKLaboklab(32.55% 0.027 -0.1616)
OKLCHoklch(32.55% 0.164 279.5)
XYZxyz(5.5292, 2.9179, 22.0972)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A84 #73841A
analogous
#1A3E84 #2B1A84 #601A84
triadic
#2B1A84 #842B1A #1A842B
tetradic
#2B1A84 #841A3E #73841A #1A8460
square
#2B1A84 #841A3E #73841A #1A8460
split-complementary
#2B1A84 #84601A #3E841A
monochromatic
#0A061E #1A1051 #2B1A84 #3C24B7 #583FD9

Accessibility & contrast

On white

13.26
#2B1A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2B1A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A84
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A84#FFFFFF#000000##FFFFFF
##2B1A841.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b1a84;
/* rgb */ color: rgb(43, 26, 132);
/* oklch */ color: oklch(32.6% 0.164 279.5);
Tailwind
colors: {
  custom: {
    50: '#725aa9',
    500: '#2b1a84',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a84;
$custom-light: #725aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a84",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 249.623,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32554,
    "c": 0.16381,
    "h": 279.5
  },
  "luminance": 0.02918
}

Semantic roles & 50–950 ramp

primary
#2B1A84
secondary
#A5B842
accent
#EA3ECE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1A84

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

Preview Lab → · Contrast checker → · Palette generator →

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