#2B1A99#2B1A99

#2B1A99 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.189 H 276.3°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#2B1A99
RGBrgb(43, 26, 153)
HSLhsl(248, 71%, 35%)
HSVhsv(248, 83%, 60%)
CMYKcmyk(71.9%, 83%, 0%, 40%)
CIE-LABlab(22.13, 46.36, -65.04)
CIE-LCHlch(22.13, 79.87, 305.48°)
OKLaboklab(34.94% 0.0208 -0.188)
OKLCHoklch(34.94% 0.189 276.3)
XYZxyz(7.1135, 3.5516, 30.4415)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A99 #88991A
analogous
#1A4999 #2B1A99 #6A1A99
triadic
#2B1A99 #992B1A #1A992B
tetradic
#2B1A99 #991A49 #88991A #1A996A
square
#2B1A99 #991A49 #88991A #1A996A
split-complementary
#2B1A99 #996A1A #49991A
monochromatic
#0E0830 #1C1165 #2B1A99 #3A23CD #614DE1

Accessibility & contrast

On white

12.28
#2B1A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2B1A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A99
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A99#FFFFFF#000000##FFFFFF
##2B1A991.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9C
Deuteranopia (green-blind)
#002F97
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b1a99;
/* rgb */ color: rgb(43, 26, 153);
/* oklch */ color: oklch(34.9% 0.189 276.3);
Tailwind
colors: {
  custom: {
    50: '#775bb8',
    500: '#2b1a99',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a99;
$custom-light: #775bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a99",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 153
  },
  "hsl": {
    "h": 248.031,
    "s": 70.95,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34943,
    "c": 0.18912,
    "h": 276.3
  },
  "luminance": 0.03552
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B1A99

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

Preview Lab → · Contrast checker → · Palette generator →

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