#2B1B8B#2B1B8B

#2B1B8B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.171 H 278.2°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#2B1B8B
RGBrgb(43, 27, 139)
HSLhsl(249, 67%, 33%)
HSVhsv(249, 81%, 55%)
CMYKcmyk(69.1%, 80.6%, 0%, 45.5%)
CIE-LABlab(20.68, 41.51, -58.76)
CIE-LCHlch(20.68, 71.94, 305.24°)
OKLaboklab(33.46% 0.0244 -0.1697)
OKLCHoklch(33.46% 0.171 278.2)
XYZxyz(6.0469, 3.1610, 24.7126)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B8B #7B8B1B
analogous
#1B438B #2B1B8B #631B8B
triadic
#2B1B8B #8B2B1B #1B8B2B
tetradic
#2B1B8B #8B1B43 #7B8B1B #1B8B63
square
#2B1B8B #8B1B43 #7B8B1B #1B8B63
split-complementary
#2B1B8B #8B631B #438B1B
monochromatic
#0B0725 #1B1158 #2B1B8B #3B25BE #5B45DB

Accessibility & contrast

On white

12.86
#2B1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2B1B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B8B
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B8B#FFFFFF#000000##FFFFFF
##2B1B8B1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b1b8b;
/* rgb */ color: rgb(43, 27, 139);
/* oklch */ color: oklch(33.5% 0.171 278.2);
Tailwind
colors: {
  custom: {
    50: '#735bae',
    500: '#2b1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b8b;
$custom-light: #735bae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b8b",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 248.571,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33461,
    "c": 0.17149,
    "h": 278.2
  },
  "luminance": 0.03162
}

Semantic roles & 50–950 ramp

primary
#2B1B8B
secondary
#ABBC45
accent
#EA3DD2
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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