#2B1A8B#2B1A8B

#2B1A8B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.172 H 278.3°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#2B1A8B
RGBrgb(43, 26, 139)
HSLhsl(249, 68%, 32%)
HSVhsv(249, 81%, 55%)
CMYKcmyk(69.1%, 81.3%, 0%, 45.5%)
CIE-LABlab(20.50, 42.02, -59.05)
CIE-LCHlch(20.50, 72.47, 305.43°)
OKLaboklab(33.34% 0.0249 -0.1706)
OKLCHoklch(33.34% 0.172 278.3)
XYZxyz(6.0244, 3.1159, 24.7051)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A8B #7A8B1A
analogous
#1A418B #2B1A8B #641A8B
triadic
#2B1A8B #8B2B1A #1A8B2B
tetradic
#2B1A8B #8B1A41 #7A8B1A #1A8B64
square
#2B1A8B #8B1A41 #7A8B1A #1A8B64
split-complementary
#2B1A8B #8B641A #418B1A
monochromatic
#0B0724 #1B1057 #2B1A8B #3B24BF #5A43DC

Accessibility & contrast

On white

12.94
#2B1A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2B1A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A8B
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A8B#FFFFFF#000000##FFFFFF
##2B1A8B1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1a8b;
/* rgb */ color: rgb(43, 26, 139);
/* oklch */ color: oklch(33.3% 0.172 278.3);
Tailwind
colors: {
  custom: {
    50: '#745aae',
    500: '#2b1a8b',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a8b;
$custom-light: #745aae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a8b",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 249.027,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33339,
    "c": 0.17238,
    "h": 278.3
  },
  "luminance": 0.03116
}

Semantic roles & 50–950 ramp

primary
#2B1A8B
secondary
#ABBD44
accent
#EB3CD1
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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