#2B1A91#2B1A91

#2B1A91 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.180 H 277.4°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#2B1A91
RGBrgb(43, 26, 145)
HSLhsl(249, 70%, 34%)
HSVhsv(249, 82%, 57%)
CMYKcmyk(70.3%, 82.1%, 0%, 43.1%)
CIE-LABlab(21.19, 43.89, -61.65)
CIE-LCHlch(21.19, 75.67, 305.45°)
OKLaboklab(34.02% 0.0232 -0.1781)
OKLCHoklch(34.02% 0.18 277.4)
XYZxyz(6.4748, 3.2961, 27.0776)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A91 #80911A
analogous
#1A4491 #2B1A91 #661A91
triadic
#2B1A91 #912B1A #1A912B
tetradic
#2B1A91 #911A44 #80911A #1A9166
square
#2B1A91 #911A44 #80911A #1A9166
split-complementary
#2B1A91 #91661A #44911A
monochromatic
#0C0729 #1C115D #2B1A91 #3A23C5 #5D47DE

Accessibility & contrast

On white

12.66
#2B1A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2B1A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A91
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A91#FFFFFF#000000##FFFFFF
##2B1A911.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003894
Deuteranopia (green-blind)
#002E8F
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b1a91;
/* rgb */ color: rgb(43, 26, 145);
/* oklch */ color: oklch(34.0% 0.180 277.4);
Tailwind
colors: {
  custom: {
    50: '#755bb3',
    500: '#2b1a91',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a91;
$custom-light: #755bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a91",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 145
  },
  "hsl": {
    "h": 248.571,
    "s": 69.591,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34021,
    "c": 0.17962,
    "h": 277.4
  },
  "luminance": 0.03297
}

Semantic roles & 50–950 ramp

primary
#2B1A91
secondary
#AEC047
accent
#EC3BD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1A91

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

Preview Lab → · Contrast checker → · Palette generator →

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