#2B1BAA#2B1BAA

#2B1BAA is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.0% C 0.208 H 274.3°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#2B1BAA
RGBrgb(43, 27, 170)
HSLhsl(247, 73%, 39%)
HSVhsv(247, 84%, 67%)
CMYKcmyk(74.7%, 84.1%, 0%, 33.3%)
CIE-LABlab(24.32, 51.04, -71.76)
CIE-LCHlch(24.32, 88.06, 305.42°)
OKLaboklab(37.04% 0.0155 -0.2075)
OKLCHoklch(37.04% 0.208 274.3)
XYZxyz(8.6415, 4.1989, 38.3775)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1BAA #9AAA1B
analogous
#1B52AA #2B1BAA #721BAA
triadic
#2B1BAA #AA2B1B #1BAA2B
tetradic
#2B1BAA #AA1B52 #9AAA1B #1BAA72
square
#2B1BAA #AA1B52 #9AAA1B #1BAA72
split-complementary
#2B1BAA #AA721B #52AA1B
monochromatic
#100A40 #1E1375 #2B1BAA #3A26DC #6A5BE5

Accessibility & contrast

On white

11.41
#2B1BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2B1BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1BAA
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1BAA#FFFFFF#000000##FFFFFF
##2B1BAA1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AE
Deuteranopia (green-blind)
#0033A8
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b1baa;
/* rgb */ color: rgb(43, 27, 170);
/* oklch */ color: oklch(37.0% 0.208 274.3);
Tailwind
colors: {
  custom: {
    50: '#7b5dc5',
    500: '#2b1baa',
    950: '#000000',
  },
}
SCSS
$custom: #2b1baa;
$custom-light: #7b5dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1baa",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 170
  },
  "hsl": {
    "h": 246.713,
    "s": 72.589,
    "l": 38.627
  },
  "oklch": {
    "l": 0.3704,
    "c": 0.20807,
    "h": 274.3
  },
  "luminance": 0.042
}

Semantic roles & 50–950 ramp

primary
#2B1BAA
secondary
#BCC958
accent
#EF39DB
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #2B1BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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