#2B1A97#2B1A97

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

Color values

HEX#2B1A97
RGBrgb(43, 26, 151)
HSLhsl(248, 71%, 35%)
HSVhsv(248, 83%, 59%)
CMYKcmyk(71.5%, 82.8%, 0%, 40.8%)
CIE-LABlab(21.89, 45.74, -64.20)
CIE-LCHlch(21.89, 78.83, 305.47°)
OKLaboklab(34.71% 0.0214 -0.1855)
OKLCHoklch(34.71% 0.187 276.6)
XYZxyz(6.9497, 3.4861, 29.5788)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A97 #86971A
analogous
#1A4897 #2B1A97 #6A1A97
triadic
#2B1A97 #972B1A #1A972B
tetradic
#2B1A97 #971A48 #86971A #1A976A
square
#2B1A97 #971A48 #86971A #1A976A
split-complementary
#2B1A97 #976A1A #48971A
monochromatic
#0D082F #1C1163 #2B1A97 #3A23CB #604BE0

Accessibility & contrast

On white

12.37
#2B1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1A97
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A97#FFFFFF#000000##FFFFFF
##2B1A971.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00399A
Deuteranopia (green-blind)
#002F95
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b1a97;
/* rgb */ color: rgb(43, 26, 151);
/* oklch */ color: oklch(34.7% 0.187 276.6);
Tailwind
colors: {
  custom: {
    50: '#765bb7',
    500: '#2b1a97',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a97;
$custom-light: #765bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a97",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 248.16,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34711,
    "c": 0.18676,
    "h": 276.6
  },
  "luminance": 0.03487
}

Semantic roles & 50–950 ramp

primary
#2B1A97
secondary
#B2C24B
accent
#ED3AD5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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