#2B1A9B#2B1A9B

#2B1A9B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.2% C 0.191 H 276.1°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#2B1A9B
RGBrgb(43, 26, 155)
HSLhsl(248, 71%, 35%)
HSVhsv(248, 83%, 61%)
CMYKcmyk(72.3%, 83.2%, 0%, 39.2%)
CIE-LABlab(22.37, 46.97, -65.87)
CIE-LCHlch(22.37, 80.90, 305.49°)
OKLaboklab(35.18% 0.0202 -0.1904)
OKLCHoklch(35.18% 0.191 276.1)
XYZxyz(7.2801, 3.6182, 31.3187)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A9B #8A9B1A
analogous
#1A499B #2B1A9B #6B1A9B
triadic
#2B1A9B #9B2B1A #1A9B2B
tetradic
#2B1A9B #9B1A49 #8A9B1A #1A9B6B
square
#2B1A9B #9B1A49 #8A9B1A #1A9B6B
split-complementary
#2B1A9B #9B6B1A #499B1A
monochromatic
#0E0832 #1C1167 #2B1A9B #3A23CF #614EE1

Accessibility & contrast

On white

12.18
#2B1A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2B1A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A9B
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A9B#FFFFFF#000000##FFFFFF
##2B1A9B1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9E
Deuteranopia (green-blind)
#003099
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b1a9b;
/* rgb */ color: rgb(43, 26, 155);
/* oklch */ color: oklch(35.2% 0.191 276.1);
Tailwind
colors: {
  custom: {
    50: '#775bba',
    500: '#2b1a9b',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a9b;
$custom-light: #775bba;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a9b",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 155
  },
  "hsl": {
    "h": 247.907,
    "s": 71.271,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35176,
    "c": 0.19146,
    "h": 276.1
  },
  "luminance": 0.03619
}

Semantic roles & 50–950 ramp

primary
#2B1A9B
secondary
#B4C44D
accent
#EE3AD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2B1A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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