#2B1BA1#2B1BA1

#2B1BA1 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.0% C 0.198 H 275.2°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#2B1BA1
RGBrgb(43, 27, 161)
HSLhsl(247, 71%, 37%)
HSVhsv(247, 83%, 63%)
CMYKcmyk(73.3%, 83.2%, 0%, 36.9%)
CIE-LABlab(23.24, 48.34, -68.10)
CIE-LCHlch(23.24, 83.51, 305.37°)
OKLaboklab(35.98% 0.0181 -0.1969)
OKLCHoklch(35.98% 0.198 275.2)
XYZxyz(7.8191, 3.8699, 34.0462)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1BA1 #91A11B
analogous
#1B4EA1 #2B1BA1 #6E1BA1
triadic
#2B1BA1 #A12B1B #1BA12B
tetradic
#2B1BA1 #A11B4E #91A11B #1BA16E
square
#2B1BA1 #A11B4E #91A11B #1BA16E
split-complementary
#2B1BA1 #A16E1B #4EA11B
monochromatic
#0F0938 #1D126D #2B1BA1 #3924D5 #6554E2

Accessibility & contrast

On white

11.84
#2B1BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2B1BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1BA1
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1BA1#FFFFFF#000000##FFFFFF
##2B1BA11.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA5
Deuteranopia (green-blind)
#00319F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2b1ba1;
/* rgb */ color: rgb(43, 27, 161);
/* oklch */ color: oklch(36.0% 0.198 275.2);
Tailwind
colors: {
  custom: {
    50: '#795cbe',
    500: '#2b1ba1',
    950: '#000000',
  },
}
SCSS
$custom: #2b1ba1;
$custom-light: #795cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1ba1",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 247.164,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35983,
    "c": 0.1977,
    "h": 275.2
  },
  "luminance": 0.03871
}

Semantic roles & 50–950 ramp

primary
#2B1BA1
secondary
#B8C552
accent
#EE3AD9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2B1BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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