#2B1B96#2B1B96

#2B1B96 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.7% C 0.185 H 276.6°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#2B1B96
RGBrgb(43, 27, 150)
HSLhsl(248, 69%, 35%)
HSVhsv(248, 82%, 59%)
CMYKcmyk(71.3%, 82%, 0%, 41.2%)
CIE-LABlab(21.94, 44.96, -63.50)
CIE-LCHlch(21.94, 77.81, 305.30°)
OKLaboklab(34.71% 0.0213 -0.1835)
OKLCHoklch(34.71% 0.185 276.6)
XYZxyz(6.8914, 3.4988, 29.1604)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B96 #86961B
analogous
#1B4896 #2B1B96 #691B96
triadic
#2B1B96 #962B1B #1B962B
tetradic
#2B1B96 #961B48 #86961B #1B9669
square
#2B1B96 #961B48 #86961B #1B9669
split-complementary
#2B1B96 #96691B #48961B
monochromatic
#0D082E #1C1262 #2B1B96 #3A24CA #604DDF

Accessibility & contrast

On white

12.35
#2B1B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2B1B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B96
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B96#FFFFFF#000000##FFFFFF
##2B1B961.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#002F94
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b1b96;
/* rgb */ color: rgb(43, 27, 150);
/* oklch */ color: oklch(34.7% 0.185 276.6);
Tailwind
colors: {
  custom: {
    50: '#765bb6',
    500: '#2b1b96',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b96;
$custom-light: #765bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b96",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 247.805,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34709,
    "c": 0.18476,
    "h": 276.6
  },
  "luminance": 0.03499
}

Semantic roles & 50–950 ramp

primary
#2B1B96
secondary
#B2C14C
accent
#EC3BD5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1B96

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

Preview Lab → · Contrast checker → · Palette generator →

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