#2B1B99#2B1B99

#2B1B99 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.1% C 0.188 H 276.2°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#2B1B99
RGBrgb(43, 27, 153)
HSLhsl(248, 70%, 35%)
HSVhsv(248, 82%, 60%)
CMYKcmyk(71.9%, 82.4%, 0%, 40%)
CIE-LABlab(22.29, 45.89, -64.77)
CIE-LCHlch(22.29, 79.38, 305.32°)
OKLaboklab(35.05% 0.0204 -0.1872)
OKLCHoklch(35.05% 0.188 276.2)
XYZxyz(7.1361, 3.5967, 30.4490)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B99 #89991B
analogous
#1B4A99 #2B1B99 #6A1B99
triadic
#2B1B99 #992B1B #1B992B
tetradic
#2B1B99 #991B4A #89991B #1B996A
square
#2B1B99 #991B4A #89991B #1B996A
split-complementary
#2B1B99 #996A1B #4A991B
monochromatic
#0E0931 #1C1265 #2B1B99 #3A24CD #614FE0

Accessibility & contrast

On white

12.21
#2B1B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1B99
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B99#FFFFFF#000000##FFFFFF
##2B1B991.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9C
Deuteranopia (green-blind)
#003097
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b1b99;
/* rgb */ color: rgb(43, 27, 153);
/* oklch */ color: oklch(35.1% 0.188 276.2);
Tailwind
colors: {
  custom: {
    50: '#775cb8',
    500: '#2b1b99',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b99;
$custom-light: #775cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b99",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 153
  },
  "hsl": {
    "h": 247.619,
    "s": 70,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35054,
    "c": 0.18832,
    "h": 276.2
  },
  "luminance": 0.03597
}

Semantic roles & 50–950 ramp

primary
#2B1B99
secondary
#B3C24E
accent
#ED3BD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2B1B99

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

Preview Lab → · Contrast checker → · Palette generator →

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